Introduction to MySQL default database

Source: Internet
Author: User
Tags phpmyadmin

Similar to large databases such as MS SQL Server, the MySQL database also provides built-in databases, which are:

  • Information_schema

  • Mysql

  • Test

1.information_schema

The first database, INFORMATION_SCHEMA, provides a way to access database metadata. Metadata is data about the data, such as the 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.

INFORMATION_SCHEMA is an information database that holds information about all the other databases maintained by the MySQL server. In Information_schema, there are a few read-only tables. They are actually views, not basic tables, so you will not 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.

Now many people use phpMyAdmin to manage MySQL database, sometimes do not want to let ordinary users through phpMyAdmin see INFORMATION_SCHEMA database. We can set this up:

Set such a sentence in config.inc.php (some config.default.php)

$cfg [' Servers '] [$i] [' hide_db '] = ' information_schema ';

  

2.mysql

Second database MySQL: This is the core database of MySQL, similar to the master table in SQL Server, which is responsible for the control and management information that MySQL needs to use, such as the user who stores the database, the permission settings, the keywords, and so on. Can not be deleted, if the MySQL is not very understanding, and do not easily modify the database inside the table information.


3.test

The third database is test: This is the installation time to create a testing database, and its name, is a complete empty database, no table, can be deleted.


This article is from the "Green Peak" blog, please make sure to keep this source http://zhuxianzhong.blog.51cto.com/157061/1829318

Introduction to MySQL default database

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.