I am trying to backup my database and keep getting error :
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 -u root -p chandlers > backup_db.sql' at line 1
I am using the following command to launch the backup :
$ mysqldump -h localhost -u root -p chandlers > backup_db.sql
edit>>>> This is how I connect to the db, this is a shortcut I have setup to open a command line :
C:\server2go\server2go\server\mysql\bin\mysql.exe -h localhost -P 7188 -u root
This works fine and connects, I have tried creating another like this >>
C:\server2go\server2go\server\mysql\bin\mysqldump.exe $ mysqldump -h localhost -P 7188 -u root -pchandlers > backup_db.sql
but I am getting an access denied error now.
$sign (This is just to show that it's a console command)