【问题标题】:No system command when using mysql from cli从cli使用mysql时没有系统命令
【发布时间】:2014-02-10 13:34:05
【问题描述】:

尝试更改目录、查看目录内容等,但由于某种原因,一旦我运行 mysql,我就没有使用命令行的系统命令。这些是我得到的选项:

List of all MySQL commands:
Note that all text commands must be first on line and end with ';'
?         (\?) Synonym for `help'.
clear     (\c) Clear the current input statement.
connect   (\r) Reconnect to the server. Optional arguments are db and host.
delimiter (\d) Set statement delimiter.
ego       (\G) Send command to mysql server, display result vertically.
exit      (\q) Exit mysql. Same as quit.
go        (\g) Send command to mysql server.
help      (\h) Display this help.
notee     (\t) Don't write into outfile.
print     (\p) Print current command.
prompt    (\R) Change your mysql prompt.
quit      (\q) Quit mysql.
rehash    (\#) Rebuild completion hash.
source    (\.) Execute an SQL script file. Takes a file name as an argument.
status    (\s) Get status information from the server.
tee       (\T) Set outfile [to_outfile]. Append everything into given outfile.
use       (\u) Use another database. Takes database name as argument.
charset   (\C) Switch to another charset. Might be needed for processing binlog
with multi-byte charsets.
warnings  (\W) Show warnings after every statement.
nowarning (\w) Don't show warnings after every statement.

有什么想法会导致这种情况吗?似乎可以使用 windows(使用 \!)。

【问题讨论】:

    标签: mysql windows command-line


    【解决方案1】:

    如 MySQL 文档中所述,MySQL 系统命令仅适用于 Unix,因此不适用于 Windows: http://dev.mysql.com/doc/refman/5.6/en/mysql-commands.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多