MySQL Show command collection

Source: Internet
Author: User

A.ShowTables orShowTables from database_name; --Displays the names of all tables in the current database
B.ShowDatabases --DisplayMySQLIn all name of the database
C.  show  columns from table_name from database_name; or Show  columns from Database_name.table_name; --Displays the column name in the table
D. Show grants for user_name;--Displays the permissions of a user, displaying the result similar to the grant command
E.  show  index from table_name; --Displays the index of the table
F.  show  status;-Displays information about some system-specific resources, such as the number of threads running
G.  show  variables; --Displays the name and value of the system variable
H.  show  processlist;-Displays all processes running in the system, that is, the query that is currently executing. Most users can view their own processes, but if they have process permissions, they can see all processes, including passwords.
I.  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
J.  show  privileges;-Show different permissions supported by the server
K.  show  create database database_name; --Shows whether the CREATE DATABASE statement can create the specified databases

SHOW CREATE DATABASE test\g;
L. Show CREATE TABLE table_name; --Show whether the CREATE DATABASE statement can create the specified databases

SHOW CREATE TABLE java\g;
M. show engies; --Displays the storage engine and the default engine that are available after installation.

SHOW Engines\g;
N. show InnoDB status; --Displays the status of the InnoDB storage engine
O. show logs; --Displays logs of the BDB storage engine
P. show warnings; --Displays errors, warnings, and notifications resulting from the last statement executed
Q. Show errors; --Displays only the errors generated by the last execution statement
R. show [storage] engines; --Displays the available storage engine and the default engine after installation
S. Show procedure status-displays basic information about all stored procedures in the database, including the owning database, stored
Process name, creation time, etc.
T. Show CREATE PROCEDURE Sp_name--show details of a stored procedure

SHOW CHARACTER SET
Show all the available character sets
SHOW CHARACTER SET;
SHOW CHARACTER SET like ' latin% ';

SHOW COLLATION
The output includes all available character sets
SHOW COLLATION;
SHOW COLLATION like ' latin1% ';

SHOW ENGINE
Show engine displays log or status information for the storage engine. The following statements are currently supported:
SHOW ENGINE BDB LOGS;
SHOW ENGINE INNODB STATUS;

SHOW OPEN TABLES
Lists the non-temporary tables that are currently open in the table cache.
SHOW OPEN TABLES;

SHOW TRIGGERS
SHOW triggers lists the triggers that are currently defined by the MySQL server.
SHOW TRIGGERS;

MySQL Show command collection

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.