Introduction to the use of the MySQL Show command _mysql
Source: Internet
Author: User
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 the databases in MySQL
Show 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 everyone's processes, including passwords
Show TABLE STATUS;
Explanation: Displays information about each table in the currently used or specified database. Information includes the latest update times for table types and tables
Show COLUMNS from TABLE to DATABASE; Or show COLUMNS from DATABASE. TABLE;
Explanation: Display column names in a table
Show grants for User@localhost;
Explanation: Displays the permissions of a user, displaying the results similar to the grant command
Show INDEX from TABLE;
Explanation: Displays the index of the table
Show STATUS;
Explanation: Displays information about some system-specific resources, such as the number of threads running
Show VARIABLES;
Explanation: Displays the name and value of the system variable
Show privileges;
Explanation: Displays the different permissions supported by the server
Show CREATE database Database;
Explanation: Shows if the CREATE DATABASE statement can create the specified databases
Show CREATE table table;
Explanation: Shows if 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;
Explanation: Displays the status of the InnoDB storage engine
Show LOGS;
Explanation: Displays the log of the BDB storage engine
Show warnings;
Explanation: Displays errors, warnings, and notifications from the last executed statement
Show ERRORS;
Explanation: Displays only the errors generated by the last execution statement
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