MySQL Development advanced Article series 36 Tools Mysqlshow (Database object Viewing tool)

Source: Internet
Author: User
Tags mysql client

I. Overview

The Mysqlshow Client Lookup tool, which can quickly find out which databases exist, the tables in the database, the columns or indexes in the table, are similar to the MySQL client tools, but some features are not available in MySQL client tools.
Mysqlshow is used as follows:

If you do not add any options, all databases are displayed by default, and all databases in the current MySQL are displayed below.

Two. Here are some common options for mysqlshow

2.1--count display statistics for databases and tables

If you do not specify a database, displays the name of each database, the table data, and the total number of records rows for the library. The following is a view of all databases.

If you specify a database, displays each table name for the specified database, the number of table fields, and the total number of rows. Here is the view MySQL library.

If you specify a database and a table, the field information is displayed, and the following is a user table that looks at the MySQL library.

2.2-k display all indexes in the specified table
This option displays two parts, one is the table structure of the specified table, and the second is the current index information for the specified table. The following is the user table displayed under MySQL library.

-- the following SQL statement shows the same function as above, querying the user table under the MySQL library, one for the field information, and two for the index information     Full  from MySQL. 'user'    INDEXfrom   mysql. 'user'

2.3-i Display Some status information for a table

This option is also useful for displaying the user table state information under the MySQL library.

More mysqlshow Information

MySQL Development advanced Article series 36 Tools Mysqlshow (Database object Viewing tool)

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.