V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Newyorkcity
V2EX  ›  问与答

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

  •  
  •   Newyorkcity · Mar 10, 2019 · 1149 views
    This topic created in 2606 days ago, the information mentioned may be changed or developed.
    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  
       Mar 10, 2019 via Android   ❤️ 1
    mysqldump 是直接在 shell 下用的吧,你是不是进到 mysql 里面了。。。
    Duolingo
        2
    Duolingo  
       Mar 10, 2019 via Android
    mysqldump 不是 sql 语句,是一个可执行文件
    msg7086
        3
    msg7086  
       Mar 10, 2019
    这是程序,又不是语句。你当语句输入,能成功就怪了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3171 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 63ms · UTC 14:29 · PVG 22:29 · LAX 07:29 · JFK 10:29
    ♥ Do have faith in what you're doing.