您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

MySQL 5.1.46开启InnoDB引擎

2025/10/17 6:01:25发布39次查看
众所周知mysql 5.1.46默认引擎为myisam,那如何开启innodb引擎呢?本人在安装数据库并开启innodb引擎时出现不少错误,先一一列举
众所周知mysql 5.1.46默认引擎为myisam,,那如何开启innodb引擎呢?本人在安装数据库并开启innodb引擎时出现不少错误,先一一列举仅供大家参考。
1. 系统环境
系统:
centos release 5.4 (final)
软件:
mysql-server-community-5.1.46-1.rhel5
mysql-shared-compat-5.1.37-0.rhel5
mysql-client-community-5.1.46-1.rhel5
2. 开启innodb报错
在配置文件中添加以下内容
#cat /etc/my.cnf
default-storage-engine=innodb
default-table-type=innodb
default-character-set=utf8
character-set-server=utf8
collation-server=utf8_general_ci
启动失败日志
#tail -f /var/log/mysqld.log
3. 故障排查
查看myql是否支持innodb引擎
mysql> show variables like have_%;
+-------------------------+----------+
| variable_name          | value    |
+-------------------------+----------+
| have_community_features | yes      |
| have_compress          | yes      |
| have_crypt              | yes      |
| have_csv                | yes      |
| have_dynamic_loading    | yes      |
| have_geometry          | yes      |
| have_innodb            | no      |
| have_ndbcluster        | no      |
| have_openssl            | disabled |
| have_partitioning      | yes      |
| have_query_cache        | yes      |
| have_rtree_keys        | yes      |
| have_ssl                | disabled |
| have_symlink            | yes      |
+-------------------------+----------+
14 rows in set (0.00 sec)
安装innodb插件提示初始化错误
问题:
mysql>  install plugin innodb soname 'ha_innodb_plugin.so';
error 1123 (hy000): can't initialize function 'innodb'; plugin initialization function failed.
解决:
把ibdata1,ib_datafile0,ib_datafile1重命名,让系统重新生成数据文件和两个日志文件;
mysql innodb存储引擎锁机制实验
innodb存储引擎的启动、关闭与恢复
mysql innodb独立表空间的配置
mysql server 层和 innodb 引擎层 体系结构图
innodb 死锁案例解析
mysql innodb独立表空间的配置
本文永久更新链接地址:
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product