MySQL command list

Source: Internet
Author: User
Tags mysql commands

MySQL command list

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.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.