`
cocos
  • 浏览: 395334 次
  • 性别: Icon_minigender_1
  • 来自: 福州
社区版块
存档分类
最新评论

安装InnoDB Plugin

阅读更多
对于mysql5.1.38之后的版本,要使用新的InnoDB Plugin存储引擎,只需在my.cnf中做如下配置:

    [mysqld]
    ignore-builtin-innodb
    plugin-load=innodb=ha_innodb_plugin.so
    plugin-load=innodb_trx=ha_innodb_plugin.so
    plugin-load=innodb_locks=ha_innodb_plugin.so
    plugin-load=innodb_cmp=ha_innodb_plugin.so
    plugin-load=innodb_cmp_reset=ha_innodb_plugin.so
    plugin-load=innodb_cmpmem=ha_innodb_plugin.so
    plugin-load=innodb_cmpmem_reset=ha_innodb_plugin.so


或是在命令行下加载

    mysql>install plugin innodb soname ‘ha_innodb_plugin.so’; 
    mysql>install plugin innodb_trx soname ‘ha_innodb_plugin.so’; 
    mysql>install plugin innodb_locks soname ‘ha_innodb_plugin.so’; 
    mysql>install plugin innodb_cmp soname ‘ha_innodb_plugin.so’; 
    mysql>install plugin innodb_cmp_reset soname ‘ha_innodb_plugin.so’; 
    mysql>install plugin innodb_cmpmem soname ‘ha_innodb_plugin.so’; 
    mysql>install plugin innodb_cmpmem_reset soname ‘ha_innodb_plugin.so’; 



要想完成动态加载innodb plugin是有条件的:

1. 使用源码编译的,默认innobase没有被编译进来;使用二进制包安装的,在启动前,在my.cnf里面加入skip-innodb或是ignore_builtin_innodb。

2. 使用源码编译时,不能使用–with-mysqld-ldflags=-all-static选项,以静态方式编译库,当show global variables like ‘have_%’;的时候,输出有一项是have_dynamic_loading将是NO,这就决定mysql是否支持动态加载plugin;而二进制包安装的mysql,就是动态编译的,支持动态加载plugin,这项为Yes。

SHOW ENGINES;
SHOW PLUGINS;

mysql> show engines;
+------------+---------+----------------------------------------------------------------+--------------+------+------------+
| Engine     | Support | Comment                                                        | Transactions | XA   | Savepoints |
+------------+---------+----------------------------------------------------------------+--------------+------+------------+
| CSV        | YES     | CSV storage engine                                             | NO           | NO   | NO         |
| InnoDB     | YES     | Supports transactions, row-level locking, and foreign keys     | YES          | YES  | YES        |
| BLACKHOLE  | YES     | /dev/null storage engine (anything you write to it disappears) | NO           | NO   | NO         |
| MyISAM     | DEFAULT | Default engine as of MySQL 3.23 with great performance         | NO           | NO   | NO         |
| MEMORY     | YES     | Hash based, stored in memory, useful for temporary tables      | NO           | NO   | NO         |
| MRG_MYISAM | YES     | Collection of identical MyISAM tables                          | NO           | NO   | NO         |
+------------+---------+----------------------------------------------------------------+--------------+------+------------+
6 rows in set (0.00 sec)

mysql> show plugins;
+---------------------+--------+--------------------+---------------------+---------+
| Name                | Status | Type               | Library             | License |
+---------------------+--------+--------------------+---------------------+---------+
| binlog              | ACTIVE | STORAGE ENGINE     | NULL                | GPL     |
| partition           | ACTIVE | STORAGE ENGINE     | NULL                | GPL     |
| BLACKHOLE           | 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     |
| InnoDB              | ACTIVE | STORAGE ENGINE     | ha_innodb_plugin.so | GPL     |
| INNODB_TRX          | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so | GPL     |
| INNODB_LOCKS        | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so | GPL     |
| INNODB_LOCK_WAITS   | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so | GPL     |
| INNODB_CMP          | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so | GPL     |
| INNODB_CMP_RESET    | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so | GPL     |
| INNODB_CMPMEM       | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so | GPL     |
| INNODB_CMPMEM_RESET | ACTIVE | INFORMATION SCHEMA | ha_innodb_plugin.so | GPL     |
+---------------------+--------+--------------------+---------------------+---------+
15 rows in set (0.00 sec)



分享到:
评论

相关推荐

    innodb插件mysql

    innodb_plugin-1.0.6.tar.gz工具兼容mysql插件

    Plugin ‘InnoDB’ is disabled. Unknown/unsupported storage engine: INNODB

    200215 20:35:10 [Note] Plugin 'InnoDB' is disabled. 200215 20:35:10 [ERROR] Unknown/unsupported storage engine: INNODB 场景描述 https://blog.csdn.net/qq_33840251/article/details/104333716 my.ini更改...

    MySQL不支持InnoDB的解决方法

    G一下后,解决如下: /var/lib/mysql目录下,删除ibdata1、ib_logfile1、 ib_logfile0,然后重启MySql让其重建以上文件: mysqladmin -uroot -p shutdown sudo mysqld_safe & 搞定! 下面是网络上的其它文章。...

    InnoDB 1.1 for MySQL 5.5 User’s Guide

    This is the User’s Guide for the InnoDB ... This manual documents the latest InnoDB plugin, version 1.1, which works with MySQL 5.5 and features cutting-edge improvements in performance and scalability.

    innodb官方文档,很实用

    innodb官方文档,很实用.就是可惜是英文的,读着费劲.收一积分,你也可上mysql.com上下载.

    InnoDB Operating system error number 9 Bad file descriptor

    mysql默认是线程不安全的...[MDEV-9749] InnoDB receives 'Bad file descriptor' error, possibly related to feedback plugin Lost connection to MySQL server at 'handshake- reading initial communication packet'

    mysql 断电不能启动

    Plugin 'FEDERATED' is disabled. 2017-11-15 19:23:46 16c0 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option ...

    MySQL InnoDB表空间加密示例详解

    从 MySQL5.7.11开始,MySQL对InnoDB支持存储在单独表空间中的表的数据加密 。此功能为物理表空间数据文件提供静态加密。该加密是在引擎内部数据页级别的加密手段,在数据页写入文件系统时加密,加密用的是AES算法,...

    MediaPlugin:cakephp 多上传媒体插件

    复制到 app/Plugin 文件夹并运行 composer update 命令下载 WideImage 创建表 CREATE TABLE media ( id int(11) NOT NULL AUTO_INCREMENT, path varchar(255) NOT NULL, name varchar(255) NOT NULL, model_name ...

    MySQL8.0.23下载安装教程.docx

    default_authentication_plugin=mysql_native_password [mysql] # 设置 mysql 客户端默认字符集 default-character-set=utf8mb4 [client] # 设置 mysql 客户端连接服务端时默认使用的端口 port=3306 default-...

    MySQL安装教程windows64位

    default_authentication_plugin=mysql_native_password [mysql] # 设置mysql客户端默认字符集 default-character-set=utf8mb4 [client] # 设置mysql客户端连接服务端时默认使用的端口 port=3306 default-character-...

    MySQL8.0.12下载安装配置方法

    default_authentication_plugin=mysql_native_password [mysql] # 设置mysql客户端默认字符集 default-character-set=utf8 [client] # 设置mysql客户端连接服务端时默认使用的端口 port=3306 default-character-set=...

    mysql执行sql文件报错Error: Unknown storage engine‘InnoDB’的解决方法

    最近在工作中遇到一个问题,在运行了一个innoDB类型的sql文件,报了Error: Unknown storage engine ‘InnoDB’错误,网上查了很多方法,但是都没办法真正解决我的问题,后来解决了,在这里总结一下过程,方便有遇到...

    安装MySQL 5后无法启动(不能Start service)解决方法小结

    这时候用事件查看器可以看到程序事件里有几个来自于 MySQL 的错误: Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed. Unknown/unsupported table type: INNODB 原来是因为这两版本的 MySQL 默认使用了...

    MySQL外键创建失败1005原因汇总

    1、安装mysql有InnoDB的插件扩展 ./configure –prefix=/usr/local/mysql –with-plugins=csv,innobase,myisam,heap,innodb_plugin 2、找不到主表中 引用的列 3、主键和外键的字符编码不一致 4、外键字段与要做外键...

    mysql-5.0.22(gz)

    MySQL-5.0.22(源码包)+5.1中文手册+innodb_plugin1.0.6文档

    MySQL-8.0.12下载安装配置方法

    default_authentication_plugin=mysql_native_password [mysql] # 设置mysql客户端默认字符集 default-character-set=utf8 [client] # 设置mysql客户端连接服务端时默认使用的端口 port=3306 default-character-set=...

    MySQL Antelope和Barracuda的区别分析

    Antelope是innodb-base的文件格式,Barracude是innodb-plugin后引入的文件格式,同时Barracude也支持Antelope文件格式。两者区别在于: 文件格式 支持行格式 特性 Antelope (Innodb-base) ROW_FORMAT=...

    mysql-5.7.24-win32.zip

    # 设置mysql的安装目录 ----------是你的文件路径------------- basedir=D:\mysql-8.0.26-winx64\mysql-8.0.26-winx64 # 设置mysql数据库的数据的存放目录 ---------是你的文件路径data文件夹自行创建 #datadir=E:\...

    mysql-5.7.10.tar.gz

    安全更新 之前 MySQL 加密安全连接只支持 TLSv1 协议,现在添加 TLS 协议支持。 新特性 InnoDB:添加新 innodb_...客户端程序支持 --enable-cleartext-plugin 选项:mysqlcheck, mysqldump, mysqlimport, mysqlshow.

Global site tag (gtag.js) - Google Analytics