MySQL 4 system Database Introduction

Source: Internet
Author: User

There are some things in MySQL that are similar to SQL Server, while many things are similar to Oracle, and today we share a database management approach that is slightly similar to SQL Server.

1. Information_schema Database: This database provides a way to access database metadata.

Metadata is data about the data, such as database name or table name, the data type of the column, or access permissions. Some of the other terms used to express this information include the data dictionary and the system catalog.
For example:
Mysql> SELECT table_name, TABLE_TYPE, engine from Information_schema.tables
-WHERE Table_schema = ' HR '
ORDER by table_name DESC;
It holds information about all other databases maintained by the MySQL server and the master database type in SQL Server. There are several read-only tables in the INFORMATION_SCHEMA. In fact, they are views, not basic tables, so you won't be able to see any files associated with them. Each MySQL user has access to these tables, but only to specific rows in the table, where the user has the appropriate access rights to the object.
The only way to access the tables contained in the database information_schema is to use the SELECT statement. Because the contents of the metadata can not be arbitrarily insert, update and Delete, and so on.
It reflects information about MySQL database data, if you can modify it will cause the database is not normal use. If you want to modify the description information about the table and the field, it is not directly in the INFORMATION_SCHEMA modification, but need to modify the corresponding table in the database, after modifying a database object, INFORMATION_SCHEMA data will be automatically updated.


2. Performance_schema Database: This database provides important reference information for database performance optimization, which is turned off by default and needs to be turned on in My.ini or MY.CNF (Linux system), which is a static setting. The dynamic setting does not take effect immediately at run time. These include some current event information, historical event information, and aggregated statistics. The database combined with slow query, and explain statements can be generalized
Performance optimizations and statement improvements.

3. mysql database: This database is also a core database, storing user's permission information and help information. It is not possible to modify its contents.

4.TEST database: This is the MySQL after the later version of the database, this database is not reused, after the installation of MySQL system automatically established this database, by default, the inside is empty, there is no database object for users to test the use, the user can also delete it, There is no impact on the system.

Remark:it essay, if reproduced please indicate out, thank you!

Terryxia

MySQL 4 system Database Introduction

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.