Main usage of the show command under MySQL database

Source: Internet
Author: User

This article mainly introduces the main usage of the show command in MySQL database, e mentor Network There is a more detailed introduction, as well as basic related teaching.

1, show tables or show tables from database_name; --Displays the names of all tables in the current database.

2, show databases; --Displays the names of all databases in MySQL.

3, show columns from the TABLE_NAME from database_name; or show columns from Database_name.table_name; --Displays the column names in the table.

4, show grants for user_name; --Displays a user's permissions and displays results similar to the grant command.

5, show index from TABLE_NAME; --Displays the index of the table.

6, show status; --Displays information about some system-specific resources, such as the number of threads that are running.

7, show variables; --Displays the name and value of the system variable.

8, show processlist; --Displays all the processes that are running in the system, that is, the query that is currently executing.

9, Show table status; --Displays information about each table in the database that is currently being used or specified. Information includes the table type and the last updated time of the table.

10, show privileges; -Displays the different permissions supported by the server.

11, show CREATE DATABASE database_name; --Shows whether the CREATE DATABASE statement can create the specified databases.

12, show create TABLE table_name; --Shows whether the CREATE DATABASE statement can create the specified databases.

13, show engies; --Displays the storage engine and the default engine that are available after installation.

14, show InnoDB status; --Displays the status of the InnoDB storage engine.

15, show logs; --Displays the logs for the BDB storage engine.

16, show warnings; --Displays errors, warnings, and notifications resulting from the last statement executed.

17, show errors; --Displays only errors resulting from the last execution statement.

18, show [storage] engines; --Displays the available storage engine and the default engine after installation.

This article is from the "Add Language" blog, please make sure to keep this source

Main usage of the show command under MySQL database

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: 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.