Information_schema in mysql (similar to the system table in SQL) and mysqlschema

Source: Internet
Author: User

Information_schema in mysql (similar to the system table in SQL) and mysqlschema

Information_schema database table description:

SCHEMATA table: Provides information about all databases in the current mysql instance. Is the result of show databases.

TABLES Table: Provides information about TABLES in the database (including views ). Describes in detail the schema, table type, table engine, and creation time of a table. Is the result of show tables from schemaname.

COLUMNS table: Provides column information in the table. Describes all the columns of a table and the information of each column in detail. Is the result of show columns from schemaname. tablename.

STATISTICS table: Provides information about table indexes. Is the result of show index from schemaname. tablename.

USER_PRIVILEGES (user permission) Table: Provides information about full-process permissions. This information is from the mysql. user authorization table. Non-standard table.

SCHEMA_PRIVILEGES (scheme permission) Table: provides information about the scheme (database) permission. This information is from the mysql. db authorization table. Non-standard table.

TABLE_PRIVILEGES table: Lists table permissions. This information is from the mysql. tables_priv authorization table. Non-standard table.

COLUMN_PRIVILEGES (column permission) Table: provides information about the column permission. This information is derived from the mysql. columns_priv authorization table. Non-standard table.

CHARACTER_SETS table: Provides information about available character sets of mysql instances. This table is obtained from the show character set result SET.

COLLATIONS table: Provides control information about each character set.

COLLATION_CHARACTER_SET_APPLICABILITY table: Specifies the character set that can be used for verification. These columns are equivalent to the first two display fields of show collation.

TABLE_CONSTRAINTS table: Describes tables with constraints. And the constraint type of the table.

KEY_COLUMN_USAGE table: Describes the restricted key columns.

ROUTINES table: Provides information about stored subroutines (stored programs and functions. In this case, the ROUTINES table does not contain udfs ). The column named "mysql. proc name" specifies the mysql. proc table column corresponding to the INFORMATION_SCHEMA.ROUTINES table.

VIEWS table: displays information about VIEWS in the database. You must have the show views permission. Otherwise, you cannot view information.

TRIGGERS table: provides information about the trigger program. You must have the super permission to view the table.

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.