V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Newyorkcity
V2EX  ›  问与答

mysql5.7 help mysqldump 显示 nothing found 是不是不正常?该怎么解决

  •  
  •   Newyorkcity · 2019-03-10 12:09:57 +08:00 · 811 次点击
    这是一个创建于 1871 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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
        1
    xfcy  
       2019-03-10 13:01:00 +08:00 via Android   ❤️ 1
    mysqldump 是直接在 shell 下用的吧,你是不是进到 mysql 里面了。。。
    codingadog
        2
    codingadog  
       2019-03-10 13:09:16 +08:00 via Android
    mysqldump 不是 sql 语句,是一个可执行文件
    msg7086
        3
    msg7086  
       2019-03-10 14:23:42 +08:00
    这是程序,又不是语句。你当语句输入,能成功就怪了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1381 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 17:34 · PVG 01:34 · LAX 10:34 · JFK 13:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.