这是一个创建于 1927 天前的主题,其中的信息可能已经有所发展或是发生改变。
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???
咋解决啊
谢谢
![xfcy](https://cdn.v2ex.com/avatar/3b34/046b/101062_normal.png?m=1495897916) |
|
1
xfcy 2019-03-10 13:01:00 +08:00 via Android 1
mysqldump 是直接在 shell 下用的吧,你是不是进到 mysql 里面了。。。
|
![codingadog](https://cdn.v2ex.com/gravatar/764b933ae3d86c435d5ac23e24b363c3?s=48&d=retro) |
|
2
codingadog 2019-03-10 13:09:16 +08:00 via Android
mysqldump 不是 sql 语句,是一个可执行文件
|
![msg7086](https://cdn.v2ex.com/avatar/4dfa/8c1c/38436_normal.png?m=1560377701) |
|
3
msg7086 2019-03-10 14:23:42 +08:00
这是程序,又不是语句。你当语句输入,能成功就怪了。
|