本文共 5204 字,大约阅读时间需要 17 分钟。
SET GLOBAL innodb_fast_shutdown=0;
lib/plugin
as part of the MySQL installation. ignore_builtin_innodbplugin-load=innodb=ha_innodb_plugin.so;innodb_trx=ha_innodb_plugin.so; innodb_locks=ha_innodb_plugin.so;innodb_lock_waits=ha_innodb_plugin.so; innodb_cmp=ha_innodb_plugin.so;innodb_cmp_reset=ha_innodb_plugin.so; innodb_cmpmem=ha_innodb_plugin.so;innodb_cmpmem_reset=ha_innodb_plugin.so
plugin-load
should be on the same line in the option file. mysqld --ignore-builtin-innodb --plugin-load=innodb=ha_innodb_plugin.so; innodb_trx=ha_innodb_plugin.so;innodb_locks=ha_innodb_plugin.so; innodb_lock_waits=ha_innodb_plugin.so;innodb_cmp=ha_innodb_plugin.so; innodb_cmp_reset=ha_innodb_plugin.so;innodb_cmpmem=ha_innodb_plugin.so; innodb_cmpmem_reset=ha_innodb_plugin.so
ha_innodb_plugin.so
with INSTALL
commands: INSTALL PLUGIN INNODB SONAME 'ha_innodb_plugin.so';INSTALL PLUGIN INNODB_TRX SONAME 'ha_innodb_plugin.so';INSTALL PLUGIN INNODB_LOCKS SONAME 'ha_innodb_plugin.so';INSTALL PLUGIN INNODB_LOCK_WAITS SONAME 'ha_innodb_plugin.so';INSTALL PLUGIN INNODB_CMP SONAME 'ha_innodb_plugin.so';INSTALL PLUGIN INNODB_CMP_RESET SONAME 'ha_innodb_plugin.so';INSTALL PLUGIN INNODB_CMPMEM SONAME 'ha_innodb_plugin.so';INSTALL PLUGIN INNODB_CMPMEM_RESET SONAME 'ha_innodb_plugin.so';
INSTALL PLUGIN
statement to install the InnoDB Plugin and the Information Schema tables, ensure the following conditions are set up: my.cnf
option file, prepend each InnoDB option with loose_
, so that MySQL will start even when InnoDB is unavailable. For example, write loose_innodb_file_per_table
instead of innodb_file_per_table
. my.cnf
to contain these two lines: ignore_builtin_innodbdefault_storage_engine=MyISAM
mysqld --ignore-builtin-innodb --default-storage-engine=MyISAM …
my.cnf
to use InnoDB as the default engine (if desired) and set appropriate configuration parameters to enable use of new InnoDB Plugin features, as described in . In particular, we recommend that you set the following specific parameters as follows: default-storage-engine=InnoDBinnodb_file_per_table=1innodb_file_format=barracudainnodb_strict_mode=1
ignore_builtin_innodb
, as long as you want to use the InnoDB Plugin as a shared library. Also, remember that the startup option skip_grant_tables
prevents MySQL from loading any plugins. SHOW PLUGINS
, which should produce the following output: Name | Status | Type | Library | License |
---|---|---|---|---|
binlog | ACTIVE | STORAGE ENGINE | NULL | GPL |
CSV | ACTIVE | STORAGE ENGINE | NULL | GPL |
MEMORY | ACTIVE | STORAGE ENGINE | NULL | GPL |
InnoDB | ACTIVE | STORAGE ENGINE | ha_innodb_plugin.so | GPL |
INNODB_TRX | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so | GPL |
INNODB_LOCKS | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so | GPL |
INNODB_LOCK_WAITS | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so | GPL |
INNODB_CMP | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so | GPL |
INNODB_CMP_RESET | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so | GPL |
INNODB_CMPMEM | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so | GPL |
INNODB_CMPMEM_RESET | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so | GPL |
MRG_MYISAM | ACTIVE | STORAGE ENGINE | NULL | GPL |
MyISAM | ACTIVE | STORAGE ENGINE | NULL | GPL |
转载地址:http://asosl.baihongyu.com/