MySQL tutorial: MySQL show command

Source: Internet
Author: User

Show tables or show tables from database_name;
Explanation: Displays the names of all tables in the current database

Show Databases
Explanation: Displays the names of all databases in MySQL

shows processlist;
Explanation: Displays all processes running on the system, which are currently executing queries. Most users can view
their own processes, but if they have process permissions, they can view the processes for everyone, including passwords.

Show table status;
Explain: Displays information for each table in the currently used or specified database. Information includes the table type and the latest update time for the table

Show columns from table_name to database_name; or show columns from database_name.table_name; Explanation: Displays the column names in the table

Show grants for user_name@localhost;
Explanation: Displays the permissions of a user, displaying the results similar to the grant command

Show index from TABL E_name;
Explanation: Displaying the index of a table

Show status;
Explanation: Displays information about some system-specific resources, such as the number of threads running

Show variables
Explanation: Display system variable names and values
br> show privileges;
Explanation: Displays the different permissions supported by the server

Show CREATE DATABASE database_name
Explanation: Shows whether the CREATE DATABASE statement is capable of creating the specified databases

showing C reate table table_name;
Explanation: Displays whether the CREATE DATABASE statement can create the specified databases

show engies
Explanation: Displays the storage engine and default engine available after installation.

Show InnoDB status
Explain: Display InnoDB storage engine State

shows logs;
Explanation: Displays the log of the BDB storage engine

Show warnings
Explain: error, warning, and notification resulting from the last executed statement

Show errors;
Explanation: Displays only the error generated by the last execution statement
 

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.