Install the InnoDB Engine in MySQL 5.1

Source: Internet
Author: User

Install the innodb Engine (mysql5.1 is not installed by default)
 
You can add the -- with-plugins = innobase parameter to configrue during compilation and installation.
 
If you have installed innodb before, you can also install the innodb engine.
 
First, make sure that there are ha_innodb_plugin.so and ha_innodb.so files under 'plugin _ dir' of mysql.
 
Mysql> show variables like 'in in _ dir ';
 
+ --------------- + ----------------------------------- +
 
| Variable_name | Value |
 
+ --------------- + ----------------------------------- +
 
| Plugin_dir |/usr/local/mysql/lib/mysql/plugin |
 
+ --------------- + ----------------------------------- +
 
1 row in set (0.01 sec)
 
If not found, the following directory files (built-in innodb and innodb_plugin) are included in your mysql compilation directory)
 
Storage/innobase/. libs/ha_innodb.so
 
Storage/innodb_plugin/. libs/ha_innodb_plugin.so
 
You need to copy them (ha_innodb_plugin.so and ha_innodb.so) to the plugin directory of mysql (/usr/local/mysql/lib/mysql/plugin)
 
 
Next, install mysql Command Line
 
Mysql> install plugin InnoDB SONAME 'Ha _ innodb. so ';
 
Install plugin InnoDB SONAME 'Ha _ innodb. so ';
 
Mysql> show engines;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.