The use of the MySQL show command
- 2020-05-09 19:28:23
- OfStack
show tables or show tables from database_name; // displays the names of all the tables in the current database
show databases; // displays the names of all databases in mysql
show columns from table_name from database_name; show columns from database_name. table_name; // displays the column names in the table
show grants for user_name @ localhost; // displays the permissions of one user and the result is similar to the grant command
show index from table_name; // displays the index of the table
show status; // displays information about system-specific resources, such as the number of threads running
show variables; // displays the names and values of system variables
show processlist; // displays all processes that are running on the system, that is, the queries that are currently executing. Most users can view it
Their own processes, but if they have process permissions, they can see everyone's processes, including passwords.
show table status; // displays information about each table in database currently in use or specified. The information includes the table type and the latest update time of the table
show privileges; // displays the different permissions supported by the server
show create database database_name; // shows whether the create database statement is able to create the specified database
show create table table_name; // shows whether the create database statement is able to create the specified database
show engies; // displays the storage engine and the default engine available after installation.
show innodb status; // displays the status of the innoDB storage engine
show logs; // displays the logs of the BDB storage engine
show warnings; // displays errors, warnings, and notifications generated by the last statement executed
show errors; // shows only the errors generated by the last execution statement
show databases; // displays the names of all databases in mysql
show columns from table_name from database_name; show columns from database_name. table_name; // displays the column names in the table
show grants for user_name @ localhost; // displays the permissions of one user and the result is similar to the grant command
show index from table_name; // displays the index of the table
show status; // displays information about system-specific resources, such as the number of threads running
show variables; // displays the names and values of system variables
show processlist; // displays all processes that are running on the system, that is, the queries that are currently executing. Most users can view it
Their own processes, but if they have process permissions, they can see everyone's processes, including passwords.
show table status; // displays information about each table in database currently in use or specified. The information includes the table type and the latest update time of the table
show privileges; // displays the different permissions supported by the server
show create database database_name; // shows whether the create database statement is able to create the specified database
show create table table_name; // shows whether the create database statement is able to create the specified database
show engies; // displays the storage engine and the default engine available after installation.
show innodb status; // displays the status of the innoDB storage engine
show logs; // displays the logs of the BDB storage engine
show warnings; // displays errors, warnings, and notifications generated by the last statement executed
show errors; // shows only the errors generated by the last execution statement