Query MySQL library/table related information

Source: Internet
Author: User

SHOW DATABASES                                //Lists the MySQL Server database. SHOW TABLES [from db_name]                    //Lists database data tables. SHOW CREATE TABLES tbl_name                    //Export data table structure. SHOW table status [from db_name]              //Lists data tables and table state information. Show COLUMNS from Tbl_name [from db_name]     //List table fields Show field from Tbl_name [from Db_name],describe tbl_name [Col_nam E]show full COLUMNS from tbl_name [from db_name]//list fields and details show field from Tbl_name [from db_name]//List field complete properties show INDE X from Tbl_name [from db_name]       //List table index. SHOW status                                  //lists the DB Server status. SHOW VARIABLES                               //Lists the MySQL system environment variables. SHOW processlist                             //Lists the execution commands. SHOW GRANTS for user                         //List A user right

Query MySQL library/table related information

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.