Usage of the Mysql show command in the Mysql database

Source: Internet
Author: User

This article mainly introduces the actual usage of the Mysql show command under the Mysql database. If you are interested in the specific application of the Mysql show command, you can click the following article to learn more about its actual application.

A. show tables or show tables from database_name; -- displays 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.

I. show table status; -- displays information about each table in the currently used or specified database. The information includes the table type and the latest update time of the table.

J. show privileges; -- display different permissions supported by the server.

K. show create database database_name; -- displays whether the create database statement can create a specified database.

L. show create table table_name; -- displays whether the create database statement can create a specified database.

M. show engies; -- displays available storage engines and default engines after installation.

N. show innodb status; -- displays the innoDB Storage engine status.

O. show logs; -- displays the logs of the BDB storage engine.

P. show warnings; -- displays errors, warnings, and notifications generated by the last executed statement.

Q. show errors; -- only displays errors generated by the last statement.

R. show [storage] engines; -- display available storage engines and default engines after installation.

The above content is the description of the Mysql show command under the Mysql database, hoping to provide you with some help in this regard.

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.