mysql 5.1.54 无法加载innodb解决方法(转)

从5.1的某个版本,默认就不打开innodb了
要使用innodb

有两种方法
=== InnoDB Storage Engine ===
Plugin Name: innobase
Description: Transactional Tables using InnoDB
Supports build: static and dynamic
Configurations: max, max-no-ndb
一种是静态 编译的时候加入 –with-plugin-innobase 或者指定–with-plugins=max或者 max-no-ndb
还有一种是动态扩展 启动mysqld后
mysql>INSTALL PLUGIN innodb SONAME ‘ha_innodb.so’
mysql> show plugin
就可以看见了
动态的话plugin_dir要指定正确:)
[mysqld]
plugin_dir=/path/to/plugin/directory

作者: Su

等待完善