MySQL 命令列表
View Code
1 List of all MySQL commands: 2 Note that all text commands must be first on line and end with ';' 3 ? (\?) Synonym for `help'. 4 clear (\c) Clear the current input statement. 5 connect (\r) Reconnect to the server. Optional arguments are db and host. 6 delimiter (\d) Set statement delimiter. 7 edit (\e) Edit command with $EDITOR. 8 ego (\G) Send command to mysql server, display result vertically. 9 exit (\q) Exit mysql. Same as quit.10 go (\g) Send command to mysql server.11 help (\h) Display this help.12 nopager (\n) Disable pager, print to stdout.13 notee (\t) Don't write into outfile.14 pager (\P) Set PAGER [to_pager]. Print the query results via PAGER.15 print (\p) Print current command.16 prompt (\R) Change your mysql prompt.17 quit (\q) Quit mysql.18 rehash (\#) Rebuild completion hash.19 source (\.) Execute an SQL script file. Takes a file name as an argument.20 status (\s) Get status information from the server.21 system (\!) Execute a system shell command.22 tee (\T) Set outfile [to_outfile]. Append everything into given outfile.23 use (\u) Use another database. Takes database name as argument.24 charset (\C) Switch to another charset. Might be needed for processing binlog with multi-byte charsets.25 warnings (\W) Show warnings after every statement.26 nowarning (\w) Don't show warnings after every statement.