gpt4 book ai didi

mysql - 从 cli 使用 mysql 时没有系统命令

转载 作者:行者123 更新时间:2023-11-30 00:47:24 24 4
gpt4 key购买 nike

尝试更改目录、查看目录内容等,但由于某种原因,一旦运行 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 文档中所述,MySQL 系统命令仅适用于 Unix,因此不适用于 Windows: http://dev.mysql.com/doc/refman/5.6/en/mysql-commands.html

关于mysql - 从 cli 使用 mysql 时没有系统命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21249968/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com