A. show tables or show tables from database_name; -- display the names of all tables in the current database
B. show databases; -- display the names of all databases in mysql
C. show columns from table_name from database_name; or show columns from database_name.table_name; -- display the column name in the table
D. show grants for user_name; -- displays the permissions of a user. The result is similar to the grant command.
E. show index from table_name; -- displays the table index
F. show status; -- displays information about specific system resources, such as the number of running threads.
G. show variables; -- display the name and value of the system variable
H. show processlist; -- display all processes running in the system, that is, the query being executed. Most users can view their own processes, but if they have the process permission, they can view all processes, including passwords.
I. show table status; -- 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.
[Content navigation] |
Page 1st: detailed usage of the show command in mysql |
Page 2nd: detailed usage of the show command in mysql |