Reputation: 5571
I am getting the following error when I try to dump a specific table of mysql database.
Steps:
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
Upvotes: 0
Views: 302
Reputation: 559
Please try this
mysql> mysqldump -u refill -prefill Refill > Users/zainbutt/Documents/Refill.sql
Upvotes: 0
Reputation: 10111
mysqldump
is a program in its own right, not a query to be called from within mysql
. You call it from a shell, not from a mysql
prompt.
Upvotes: 2