mysqldump备份数据库提示ERROR 1064 (42000): You have an error in your SQL syntax

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>
发布了44 篇原创文章 · 获赞 2 · 访问量 1751

猜你喜欢

转载自blog.csdn.net/sunsineq/article/details/105275050
今日推荐