当前位置:Gxlcms > 数据库问题 > InnoDB独立表空间

InnoDB独立表空间

时间:2021-07-01 10:21:17 帮助过:3人阅读

结论

共享表空间insert操作上略有优势,其它都没独立表空间表现好。当启用独立表空间时,请合理调整一下innodb_open_files参数。

独立表空间开启方法,在my.cnf中[mysqld]下设置:


innodb_file_per_table=1

查看是否开启:


mysql> show variables like ‘%per_table%’;

关闭独享表空间:

innodb_file_per_table=0

通常这三个参数放在一起设置:

innodb_file_per_table=1
innodb_file_format=barracuda
innodb_strict_mode=1

InnoDB独立表空间

标签:

人气教程排行