Home > Database > Mysql Tutorial > MySQL 5.1安装InnoDB引擎

MySQL 5.1安装InnoDB引擎

WBOY
Release: 2016-06-07 17:28:33
Original
1513 people have browsed it

安装 innodb 引擎(mysql5.1默认不安装),可以在编译安装时,在configrue的时候,加上--with-plugins=innobase这个参数。如果之

安装 innodb 引擎(mysql5.1默认不安装)
 
可以在编译安装时,在configrue的时候,加上--with-plugins=innobase这个参数
 
如果之前已经安装过,也可补装innodb引擎
 
首先确定,在mysql的'plugin_dir'下有ha_innodb_plugin.so和ha_innodb.so两个文件
 
mysql> show variables like 'plugin_dir';
 
+---------------+-----------------------------------+
 
| Variable_name | Value                            |
 
+---------------+-----------------------------------+
 
| plugin_dir    | /usr/local/mysql/lib/mysql/plugin |
 
+---------------+-----------------------------------+
 
1 row in set (0.01 sec)
 
如果没有找到,,在您的mysql编译目录里有下面的目录文件(内置的innodb和innodb_plugin)
 
storage/innobase/.libs/ha_innodb.so
 
storage/innodb_plugin/.libs/ha_innodb_plugin.so
 
您需要把它们(ha_innodb_plugin.so和ha_innodb.so)拷贝到mysql的plugin目录中(/usr/local/mysql/lib/mysql/plugin)
 
 
接下来就是在mysql命令行安装一下
 
mysql> INSTALL PLUGIN InnoDB SONAME 'ha_innodb.so';
 
INSTALL PLUGIN InnoDB SONAME 'ha_innodb.so';
 
mysql> show engines;

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template