The role and separation of ibdata in mysqlInnodb _ MySQL

Source: Internet
Author: User
The role and separation of ibdata in mysqlInnodb bitsCN.com

Functions and separation of ibdata of mysql Innodb

In the mysql INNODB data status, ibdata is used to store file data, while the table files in the folder of the database name are only structured. be careful that you cannot delete it, shared tablespace management will cause the tablespace cannot be reduced after it is allocated, so it will become larger and larger, so it is necessary to separate it.

Parameters of the independent tablespace of INNODB:

Innodb_file_per_table

The procedure is as follows:

1. backup database mysqldump-uroot-p -- all-database> c: /all_back_database.sql2. stop database mysqladmin -- host = localhost -- user = root -- password shutdown3. delete related files ibdata1ib_logfile * 4. manually delete all database folders except Mysql, then start the database net start mysql5 and restore the data mysql-uroot-p.

 

  


BitsCN.com

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.