How to Use the MySQLSHOW command

Source: Internet
Author: User
For more information about how to use the MySQLSHOW command, see.

For more information about how to use the MySQL SHOW command, see.

Show tables or show tables from database;
Explanation: displays the names of all tables in the current database.

Show databases;
Explanation: displays the names of all databases in MYSQL.

Show processlist;
Explanation: displays all processes running in the system, that is, the query currently being executed. Most users can view their own processes, but if they have the PROCESS permission, they can view all processes, including passwords.

Show table status;
Explanation: displays information about each table in the currently used or specified DATABASE. Information includes the table type and the latest update time of the table.

Show columns from table from database; or show columns from database. TABLE;
Explanation: displays the column name in the table.

Show grants for user @ LOCALHOST;
Explanation: displays the permissions of a user. The display result is similar to the GRANT command.

Show index from table;
Explanation: displays the table index.

Show status;
Explanation: displays information about specific system resources, such as the number of running threads.

Show variables;
Explanation: displays the name and value of the system variable.

Show privileges;
Explanation: display different permissions supported by the server

Show create database;
Explanation: whether the create database statement can CREATE a specified DATABASE

Show create table;
Explanation: whether the create database statement can CREATE a specified DATABASE

Show engies;
Explanation: displays available storage engines and default engines after installation.

Show innodb status;
Explanation: displays the INNODB Storage engine status.

Show logs;
Explanation: displays BDB storage engine logs.

Show warnings;
Explanation: displays errors, warnings, and notifications generated by the last executed statement.

Show errors;
Explanation: only displays Errors generated by the last 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.