- 浏览: 400345 次
- 性别:
- 来自: 福州
文章分类
最新评论
-
生于菇乡:
GRANT CREATE ROUTINE,ALTER ROUT ...
mysql 存储过程权限相关 -
cocos:
[MYSQL] ERROR: cannot allocate ...
一次数据库升级过程 mysql5.0.78 到 5.1.57 -
cocos:
MySQL ERROR] Plugin 'InnoDB' in ...
一次数据库升级过程 mysql5.0.78 到 5.1.57 -
rjgcs123:
云集国内redis大佬的群正在招募各路redis朋友,不管你是 ...
redis 安装 配置解析 -
cocos:
mkfsmkfs -t 文件系统类型 /dev/设备名如要把/ ...
mount
对于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)
[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)
发表评论
-
用SQL找出每种类型中时间最新的前N个数据组成的集合
2012-03-23 22:46 1534比如有文章表 Article(Id,Category ... -
mysql select 中的escape,转义
2011-10-17 16:57 3041SELECT * FROM tb1 WHERE varchar ... -
mysql 变量
2011-07-13 21:45 22681. 使用用户变量 可以清空MySQL 用 ... -
安装DBI组件。 Can't locate DBI.pm in @INC-mysql接口
2011-07-12 21:05 10723Can't locate DBI.pm in @INC ( ... -
mysql 排名
2011-07-08 11:21 1100SET @i=0; SELECT @i:=@i+1,user ... -
Linux下设置自动删除N天前备份
2011-07-06 21:00 1689find /data1/mysqldata/mysqlback ... -
修改数据库字符集
2011-07-05 13:08 1145ALTER DATABASE gongwuyuan_063 ... -
一个导数据的存储过程
2011-07-04 21:27 1294DELIMITER $$ USE `gongwuyu ... -
MySQL字符串函数:字符串截取
2011-07-04 20:08 1269MySQL 字符串截取函数:left(), right ... -
mysql 清理 binlog 二进制日志文件
2011-07-03 21:41 8772mysql> PURGE MASTER LOG ... -
xtrabackup
2011-07-03 21:21 18701. 下载 wget http://www.percona. ... -
MySQL的FLUSH句法
2011-07-03 19:14 2689MySQL的FLUSH句法(清除 ... -
mysql 存储过程权限相关
2011-06-30 01:43 73431.修改mysql 存储过程的definer 修改mysql. ... -
MySQL命令行的几个用法
2011-06-28 14:23 21641.使用\G按行垂直显示结果 如果一行很长,需要这行显示的话 ... -
MySQL命令行的几个用法
2011-06-28 14:17 1MySQL的客户端命令行工 ... -
mysql null
2011-06-20 20:22 1214mysql> select 0 is null, 0 ... -
External Locking skip-external-locking
2011-06-14 22:59 2129External locking is the use of ... -
innodb 日志文件异常引起innodb 启动失败
2011-06-14 22:13 15846innodb 日志文件异常引起innodb 启动失败 110 ... -
mysql innodb 引擎初始化错误
2011-06-14 22:06 3323错误日志: InnoDB: The InnoDB me ... -
mysql Incorrect integer value错误
2011-06-14 21:58 1759# Set the SQL mode to strict ...
相关推荐
然而,正确地安装、配置和使用InnoDB Plugin至关重要,这需要对MySQL的内部机制有深入的理解,并且要时刻关注其与系统其他部分的兼容性。通过不断学习和实践,我们可以充分利用InnoDB Plugin的优势,提升数据库系统...
### MySQL安装InnoDB插件详解 #### 一、前言 在MySQL数据库系统中,InnoDB存储引擎是非常重要的一种类型,它支持事务处理(Transactions)、行级锁定(Row-Level Locking)以及外键约束(Foreign Key Constraints...
3. **安装innodb plugin.txt**: 这个文本文件很可能提供了关于如何在MySQL服务器上安装和启用InnoDB Plugin的详细步骤,包括可能的配置更改和注意事项。 4. **linux下面安装mysql.txt**: 这个文档提供了在Linux系统...
InnoDB Plugin是InnoDB的一个增强版本,引入了许多新的特性和改进,如更高的并发性能、更快的插入速度和更灵活的内存管理。 总结,《InnoDB官方文档中文翻译版》详尽地阐述了InnoDB的各个方面,包括其核心功能、...
通过学习本教程,读者不仅能够了解 InnoDB 的基本原理和技术特点,还能掌握 InnoDB Plugin 1.0 的安装、配置方法以及使用过程中的注意事项。这对于维护和优化基于 MySQL 的应用程序具有重要意义。 总的来说,InnoDB...
2. Innodb Plugin for MySQL 5.1(版本1.0.x)改善了扩展性,支持快速索引创建和压缩。 3. MySQL 5.5(版本1.1.x)进一步提升了扩展性。 4. XtraDB基于MySQL 5.1和5.5版本的Innodb插件,增加了新特性,并对性能进行...
2. **Memcached Plugin**: - 添加了 Memcached 插件,实现了与 Memcached 的无缝集成,提高了缓存操作的灵活性。 3. **Transportable Tablespace**: - 支持了表空间的可移植性,使得可以在不同服务器之间轻松...
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更改...
G一下后,解决如下: /var/lib/mysql目录下,删除ibdata1、ib_logfile1、 ib_logfile0,然后重启MySql让其重建以上文件: mysqladmin -uroot -p shutdown sudo mysqld_safe & 搞定! 下面是网络上的其它文章。...
- **实现逻辑**:Clone Plugin基于InnoDB存储引擎,只克隆InnoDB表,因为MySQL 8.0已将系统表改为InnoDB。非InnoDB表不会被克隆。 - **监控**:利用`performance_schema`中的`clone_progress`和`clone_status`视图...
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'
这时,可以在配置文件my.cnf中加入`plugin-load=innodb=ha_innodb_plugin.so`和`plugin_dir=/usr/lib64/mysql/plugin`来指定加载InnoDB插件的路径。同时,为了确保默认使用InnoDB引擎,还需要添加`default-storage-...
安装InnoDB Memcached插件的过程在描述中已经给出,首先需要确保安装的是最新稳定的MySQL版本,如5.6.13。通过编译源代码并启用WITH_INNODB_MEMCACHED选项来包含插件。安装完成后,可以在MySQL的插件目录找到innodb_...
引入了InnoDB Plugin,提供了更好的行级锁定和自适应哈希索引。 2. **Full-text Search改进**:MySQL 5.5对全文搜索功能进行了升级,支持对短语的搜索和更复杂的查询操作,提高了全文索引的效率。 3. **并行复制**...
最近在工作中遇到一个问题,在运行了一个innoDB类型的sql文件,报了Error: Unknown storage engine ‘InnoDB’错误,网上查了很多方法,但是都没办法真正解决我的问题,后来解决了,在这里总结一下过程,方便有遇到...
plugin_dir=/usr/local/mysql5.7/lib/mysql/plugin # 插件路径,需根据实际安装位置调整 early-plugin-load="keyring_file.so" # 加密插件 keyring_file_data=/data/mysql3306/keyring/keyring # 需要创建的路径 ...
可以使用`--prefix`指定安装路径,以及其他相关选项如`--with-innodb-plugin`来启用InnoDB Plugin。 5. **编译与安装**:执行`make`进行编译,然后使用`make install`进行安装。 6. **初始化数据库**:安装完成后...
如果找不到`skip-innodb`,那么可能是你的MySQL配置文件中本来就未启用InnoDB,这时可以考虑添加一行`innodb=1`或`innodb_plugin=1`来启用它。 4. **保存并退出**:确认修改无误后,保存文件并退出编辑器。 5. **...