在ppstorm的命令行工具,直接导出数据时,总是出现1064错误。
错误提示一
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 root po_demo > sdemo.s
ql' at line 1原因:
使用mysql command line client cmd直接进入后,会与mysqldump.exe冲突。
解决方案:
进入mysql的安装路径的bin目录下,再使用命令执行。
cd D:\phpStudy\PHPTutorial\MySQL\bin错误提示二
mysqldump: Couldn't find table: ";"1、保存路径出现空格,导致的,最好在保存路径加上"";
2、不能用“;”,直接回车;

正确语法:

mysqldump -u root -p daishan po_demo> "D:\demo.sql"daishan 数据库名称;
po_demo 数据表名称;(可省略,直接备份数据库)
“D:\demo.sql” 保存路径
记住!!!,结尾不能用";",直接回车即可。
Done!










