这是一个创建于 2036 天前的主题,其中的信息可能已经有所发展或是发生改变。
mysqldump -u root -p --all-databases > database_dump.txt;
连这种语句我敲进去都返回:
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 --all-databases > database_dump.txt' at line 1
我就好气,我想不会是我 mysqldump 没有吧...
于是 help mysqldump 返回
mysql> help mysqldump;
Nothing found
Please try to run 'help contents' for a list of all accessible topics
请问各位的 help mysqldump 也是这样的么..
我的数据库没带 mysqldump???
咋解决啊
谢谢
|
|
1
xfcy 2019-03-10 13:01:00 +08:00 via Android 1
mysqldump 是直接在 shell 下用的吧,你是不是进到 mysql 里面了。。。
|
|
|
2
codingadog 2019-03-10 13:09:16 +08:00 via Android
mysqldump 不是 sql 语句,是一个可执行文件
|
|
|
3
msg7086 2019-03-10 14:23:42 +08:00
这是程序,又不是语句。你当语句输入,能成功就怪了。
|