Mysql安装innodb支持

注意:查看/tem文件权限是不是 777 ,再添加 install plugin innodb soname ‘ha_innodb.so’; ,它会在tmp文件中写一个文本,如果没有权限,则报出找不到文件错误。

系统环境:linux

数据库版本:mysql 5.1.47
需要要安装innodb类型支持
先查看mysql是否安装了innodb插件

[root@localhost bin]# ./mysql  
mysql> show plugin;  
+------------+--------+----------------+---------+---------+  
| Name       | Status | Type           | Library | License |  
+------------+--------+----------------+---------+---------+  
| binlog     | ACTIVE | STORAGE ENGINE | NULL    | GPL     |  
| CSV        | ACTIVE | STORAGE ENGINE | NULL    | GPL     |  
| MEMORY     | ACTIVE | STORAGE ENGINE | NULL    | GPL     |  
| MyISAM     | ACTIVE | STORAGE ENGINE | NULL    | GPL     |  
| MRG_MYISAM | ACTIVE | STORAGE ENGINE | NULL    | GPL     |  
+------------+--------+----------------+---------+---------+  

发现没有安装

mysql> install plugin innodb soname 'ha_innodb.so';  
ERROR 1126 (HY000): Can't open shared library

你可能感兴趣的:(Mysql8.0从入门到实战)