innodb_file_per_table 是 OFF。
[root@moodle mysql]# mysql -uroot -p123qwe -e "show variables like 'innodb_file_per_table';" +-----------------------+-------+ | Variable_name | Value | +-----------------------+-------+ | innodb_file_per_table | ON | +-----------------------+-------+
innodb_file_per_table=1。
[root@moodle mysql]# grep '\[mysqld\]' -A3 /etc/my.cnf [mysqld] innodb_file_per_table=1 collation-server=utf8_general_ci character-set-server=utf8
[root@moodle mysql]# /etc/init.d/mysqld restart Stopping mysqld: [ OK ] Starting mysqld: [ OK ]