您好我正在尝试从mysql命令行客户端进行备份.我正在使用mysqldump来使用用户名和密码进行备份.以下是我用于备份数据库的命令.
mysql> mysqldump -u username -p password databasename > backup.sql;
Run Code Online (Sandbox Code Playgroud)
我收到了以下错误
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 'mysql
dump -u username -p password fms > backup.sql' at line 1
Run Code Online (Sandbox Code Playgroud)
虽然命令似乎是正确的,但我仍然得到错误.请告诉我有没有其他方法从mysql命令行进行备份.
提前致谢.