MySQL tutorial: MySQL show command

Source: Internet
Author: User
Tags mysql mysql tutorial create database

Show tables or show tables from database_name;
Explanation: Displays the names of all tables in the current database

show databases;
Explanation: Displays the names of all the databases in MySQL

Show Processlist;
Explanation: Displays all processes running on the system, which are currently executing queries. Most users can view
Their own processes, but if they have process permissions, they can view all of the processes, including passwords.

Show table status;
Explanation: Displays information about each table in the currently used or specified database. Information includes the latest update times for table types and tables

Show columns from table_name to database_name; or show columns from Database_name.table_name;
Explanation: Display column names in a table

Show grants for User_name@localhost;
Explanation: Displays the permissions of a user, displaying the results similar to the grant command

Show index from TABLE_NAME;
Explanation: Displays the index of the table

Show status;
Explanation: Displays information about some system-specific resources, such as the number of threads running

Show variables;
Explanation: Displays the name and value of the system variable

Show privileges;
Explanation: Displays the different permissions supported by the server

Show CREATE DATABASE database_name;
Explanation: Shows if the CREATE DATABASE statement can create the specified databases

Show CREATE TABLE table_name;
Explanation: Shows if the CREATE DATABASE statement can create the specified databases

Show Engies;
Explanation: Displays the storage engine and default engine available after installation.

Show InnoDB status;
Explanation: Displays the status of the InnoDB storage engine

Show logs;
Explanation: Displays the log of the BDB storage engine

Show warnings;
Explanation: Displays errors, warnings, and notifications from the last executed statement

Show errors;
Explanation: Displays only the errors generated by the last execution 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.