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
 -v' at line 1

在dos下备份数据库的时候提示上面的错误信息

通过查资料知道,不需要登录mysql,只需要在命令行下切换到mysql\bin目录,使用备份命令mysqldump即可


d:\phpStudy\MySQL\bin>mysqldump -uroot -proot testphp >d:\testphp.sql

d:\phpStudy\MySQL\bin>

 

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐