InnoDB configuration of a standalone table space

Source: Internet
Author: User

InnoDB configuration of a standalone table space
Environment Introduction:
MySQL version: 5.5.40
1. See if the stand-alone table space is turned on
Mysql> Show variables like '%per_table% ';
+-----------------------+-------+
| variable_name | Value |
+-----------------------+-------+
| innodb_file_per_table | OFF |
+-----------------------+-------+
1 row in Set (0.00 sec)
Description: Off means that MySQL is a shared table space

2. Stop the MySQL server:

[[email protected] ~]#/etc/init.d/mysqld stop


3. Modify the My.cnf file:
[Mysqld]

Innodb-file-per-table=1


4. Start MySQL
[[email protected] ~]#/etc/init.d/mysqld start
 
5. Verify that the feature is turned on
mysql> Show variables like '%per_table% ';
+-----------------------+-------+    
| variable_name |    Value |
+-----------------------+-------+    
| innodb_file_per_table |    On |
+-----------------------+-------+    
1 row in Set (0.00 sec)
Summary:
1. If the online server needs to save data, add 2 more steps
A. Backing up data with mysqldump
b. Using MySQL to recover the corresponding data
Reference Link: http://blog.csdn.net/jacson_bai/article/details/44781033
2. Delete the old files, you need to delete ibdata*, also delete the corresponding log file ib_logfile*, or start MySQL, will prompt the exception missing mysql.pid file;

InnoDB configuration of a standalone table space

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.