嗨,我想备份我的MySql数据库, 我写这个命令:
mysqldump -u root -ppassword -h localhost --all-databases > backup.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 'mysql
dump -u root -pmanager -h localhost --all-databases > backup.sql' at line 1
为什么呢? 应该怎么做? 感谢...
答案 0 :(得分:3)
您正在mysql中运行此命令。您应该从命令行运行它。