Usage of MySQL show

Source: Internet
Author: User

The following articles mainly introduce the actual usage of MySQL show. MySQL show is often used in actual applications. The following articles describe the actual usage of MySQL show, I hope it will help you in this regard.

Show tables or show tables from database_name; // display the names of all tables in the current database

Show databases; // display the names of all databases in mysql

Show columns from table_name from database_name; or MySQL show columns from database_name.table_name; // display the column name in the table

Show grants for user_name @ localhost; // displays the permissions of a user. The result is similar to the grant command.

Show index from table_name; // displays the table index

Show status; // displays information about specific system resources, such as the number of running threads.

Show variables; // display the name and value of the system variable

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.

MySQL 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.

Show privileges; // display different permissions supported by the server

Show create database database_name; // shows whether the create database statement can create a specified database.

Show create table table_name; // whether the create database statement can create a specified database

Show engies; // display available storage engines and default engines after installation.

Show innodb status; // display the innoDB Storage engine status

Show logs; // display BDB storage engine logs

MySQL show warnings; // displays errors, warnings, and notifications generated by the last executed statement.

Show errors; // only displays errors generated by the last statement.

Related Article

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.