I am getting the following error when I try to dump a specific table of mysql database.
Steps:
- SSH'ed to a machine
- Moved into the mysql session
- Executed the following command
mysql> mysqldump -urefill -p refill Refill > Users/zainbutt/Documents/Refill.sql; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysqldump -urefill -p refill Refill > Refill2.sql' at line 1
mysqldumpis a separate program. You're trying to run it from within the mysql monitor as if it was a query.