当配置文件为
innodb_data_home_dir = /usr/local/mysql/var/
# innodb_data_file_path = ibdata1:100M;ibdata2:10M:autoextend
innodb_data_file_path=ibdata1:100M:autoextend
的时候,innodb启动成功。用show engines;命令查看如下:'ndbcluster', 'NO', 'Clustered, fault-tolerant tables', NULL, NULL, NULL
'MRG_MYISAM', 'YES', 'Collection of identical MyISAM tables', 'NO', 'NO', 'NO'
'BLACKHOLE', 'YES', '/dev/null storage engine (anything you write to it disappears)', 'NO', 'NO', 'NO'
'CSV', 'YES', 'CSV storage engine', 'NO', 'NO', 'NO'
'MEMORY', 'YES', 'Hash based, stored in memory, useful for temporary tables', 'NO', 'NO', 'NO'
'FEDERATED', 'NO', 'Federated MySQL storage engine', NULL, NULL, NULL
'ARCHIVE', 'YES', 'Archive storage engine', 'NO', 'NO', 'NO'
'InnoDB', 'YES', 'Supports transactions, row-level locking, and foreign keys', 'YES', 'YES', 'YES'
'MyISAM', 'DEFAULT', 'Default engine as of MySQL 3.23 with great performance', 'NO', 'NO', 'NO'
但是当配置文件为
innodb_data_home_dir = /usr/local/mysql/var/
innodb_data_file_path = ibdata1:100M;ibdata2:10M:autoextend
# innodb_data_file_path=ibdata1:100M:autoextend
的时候,innodb启动失败,用show engines查看命令如下:'ndbcluster', 'NO', 'Clustered, fault-tolerant tables', NULL, NULL, NULL
'MRG_MYISAM', 'YES', 'Collection of identical MyISAM tables', 'NO', 'NO', 'NO'
'BLACKHOLE', 'YES', '/dev/null storage engine (anything you write to it disappears)', 'NO', 'NO', 'NO'
'CSV', 'YES', 'CSV storage engine', 'NO', 'NO', 'NO'
'MEMORY', 'YES', 'Hash based, stored in memory, useful for temporary tables', 'NO', 'NO', 'NO'
'FEDERATED', 'NO', 'Federated MySQL storage engine', NULL, NULL, NULL
'ARCHIVE', 'YES', 'Archive storage engine', 'NO', 'NO', 'NO'
'MyISAM', 'DEFAULT', 'Default engine as of MySQL 3.23 with great performance', 'NO', 'NO', 'NO'
这到底是为什么啊,文档上面说 在[mysqld]后面加上
innodb_data_file_path=ibdata1:50M;ibdata2:50M:autoextend
就可以支持多数据文件了。为什么我的失败了呢?