Can I delete information_schema and mysql In the mysql database?

Source: Internet
Author: User

The newly installed mysql has two databases: information_schema and mysql. What are they doing? Can I delete it?
Of course, it cannot be deleted.

1. information schemaIt is all the dictionary information used by the mysql System, including the database information, tables, dictionaries, stored procedures, and other object information and process access and status information.
The database system cannot be used once it is deleted.

2. mysql databases store system-related permissions, objects, and status information. It cannot be deleted.
In addition, these two databases are very small and do not occupy space. Why do you want to delete them .?

What is information_schema (17) in the mysql database? Can I delete it? What if I delete it? For example, a cms program uses a php + mysql database. If information_schema (17) is deleted before the cms program is installed, will it be automatically created during the installation process? Thank you.

If you follow the explanations on the Internet or in the book, it may be difficult for you to understand what information_schema is. The explanations on the Internet and in the book are nonsense. You just copied me And I copied you.

Simply put, the information_schema data table stores information about all databases on the MySQL server. Such as the database name, database table, and data type and access permissions in the table column. Simply put, on this MySQL server, what databases are there, what tables are there in each database, what is the field type of each table, And what permissions each database needs to access, and so on.

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.