现在是mysql一菜鸟,什么都不懂!!备份语句mysqldump -hlocalhost -p3306 -uroot -p123456 school>f:school.sql;运行之后出现下面的错误。不知道是什么原因希望有知道的解决下。谢谢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 -hlocalhost -p3306 -uroot -p123456 school>f:school.sql' at line 1
mysql>
你的mysql环境是windows吗?
google了下,楼主原来是在mysql>命令行窗口里面运行mysqldump命令。运行地方错了,mysqldump是需要在操作系统的命令行下面执行的。比如linux下:
shell> mysqldump -uroot -p db > t.sql比如windows下:
c:\> mysqldump -uroot -p db >t.sql
谢谢