- 浏览: 395334 次
- 性别:
- 来自: 福州
文章分类
最新评论
-
生于菇乡:
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 1503比如有文章表 Article(Id,Category ... -
mysql select 中的escape,转义
2011-10-17 16:57 2996SELECT * FROM tb1 WHERE varchar ... -
mysql 变量
2011-07-13 21:45 22151. 使用用户变量 可以清空MySQL 用 ... -
安装DBI组件。 Can't locate DBI.pm in @INC-mysql接口
2011-07-12 21:05 10668Can't locate DBI.pm in @INC ( ... -
mysql 排名
2011-07-08 11:21 1062SET @i=0; SELECT @i:=@i+1,user ... -
Linux下设置自动删除N天前备份
2011-07-06 21:00 1653find /data1/mysqldata/mysqlback ... -
修改数据库字符集
2011-07-05 13:08 1100ALTER DATABASE gongwuyuan_063 ... -
一个导数据的存储过程
2011-07-04 21:27 1258DELIMITER $$ USE `gongwuyu ... -
MySQL字符串函数:字符串截取
2011-07-04 20:08 1237MySQL 字符串截取函数:left(), right ... -
mysql 清理 binlog 二进制日志文件
2011-07-03 21:41 8710mysql> PURGE MASTER LOG ... -
xtrabackup
2011-07-03 21:21 18431. 下载 wget http://www.percona. ... -
MySQL的FLUSH句法
2011-07-03 19:14 2654MySQL的FLUSH句法(清除 ... -
mysql 存储过程权限相关
2011-06-30 01:43 72961.修改mysql 存储过程的definer 修改mysql. ... -
MySQL命令行的几个用法
2011-06-28 14:23 21181.使用\G按行垂直显示结果 如果一行很长,需要这行显示的话 ... -
MySQL命令行的几个用法
2011-06-28 14:17 1MySQL的客户端命令行工 ... -
mysql null
2011-06-20 20:22 1177mysql> select 0 is null, 0 ... -
External Locking skip-external-locking
2011-06-14 22:59 2093External locking is the use of ... -
innodb 日志文件异常引起innodb 启动失败
2011-06-14 22:13 15801innodb 日志文件异常引起innodb 启动失败 110 ... -
mysql innodb 引擎初始化错误
2011-06-14 22:06 3290错误日志: InnoDB: The InnoDB me ... -
mysql Incorrect integer value错误
2011-06-14 21:58 1693# Set the SQL mode to strict ...
相关推荐
innodb_plugin-1.0.6.tar.gz工具兼容mysql插件
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 & 搞定! 下面是网络上的其它文章。...
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官方文档,很实用.就是可惜是英文的,读着费劲.收一积分,你也可上mysql.com上下载.
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'
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 ...
从 MySQL5.7.11开始,MySQL对InnoDB支持存储在单独表空间中的表的数据加密 。此功能为物理表空间数据文件提供静态加密。该加密是在引擎内部数据页级别的加密手段,在数据页写入文件系统时加密,加密用的是AES算法,...
复制到 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 ...
default_authentication_plugin=mysql_native_password [mysql] # 设置 mysql 客户端默认字符集 default-character-set=utf8mb4 [client] # 设置 mysql 客户端连接服务端时默认使用的端口 port=3306 default-...
default_authentication_plugin=mysql_native_password [mysql] # 设置mysql客户端默认字符集 default-character-set=utf8mb4 [client] # 设置mysql客户端连接服务端时默认使用的端口 port=3306 default-character-...
default_authentication_plugin=mysql_native_password [mysql] # 设置mysql客户端默认字符集 default-character-set=utf8 [client] # 设置mysql客户端连接服务端时默认使用的端口 port=3306 default-character-set=...
最近在工作中遇到一个问题,在运行了一个innoDB类型的sql文件,报了Error: Unknown storage engine ‘InnoDB’错误,网上查了很多方法,但是都没办法真正解决我的问题,后来解决了,在这里总结一下过程,方便有遇到...
这时候用事件查看器可以看到程序事件里有几个来自于 MySQL 的错误: Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed. Unknown/unsupported table type: INNODB 原来是因为这两版本的 MySQL 默认使用了...
1、安装mysql有InnoDB的插件扩展 ./configure –prefix=/usr/local/mysql –with-plugins=csv,innobase,myisam,heap,innodb_plugin 2、找不到主表中 引用的列 3、主键和外键的字符编码不一致 4、外键字段与要做外键...
MySQL-5.0.22(源码包)+5.1中文手册+innodb_plugin1.0.6文档
default_authentication_plugin=mysql_native_password [mysql] # 设置mysql客户端默认字符集 default-character-set=utf8 [client] # 设置mysql客户端连接服务端时默认使用的端口 port=3306 default-character-set=...
Antelope是innodb-base的文件格式,Barracude是innodb-plugin后引入的文件格式,同时Barracude也支持Antelope文件格式。两者区别在于: 文件格式 支持行格式 特性 Antelope (Innodb-base) ROW_FORMAT=...
# 设置mysql的安装目录 ----------是你的文件路径------------- basedir=D:\mysql-8.0.26-winx64\mysql-8.0.26-winx64 # 设置mysql数据库的数据的存放目录 ---------是你的文件路径data文件夹自行创建 #datadir=E:\...
安全更新 之前 MySQL 加密安全连接只支持 TLSv1 协议,现在添加 TLS 协议支持。 新特性 InnoDB:添加新 innodb_...客户端程序支持 --enable-cleartext-plugin 选项:mysqlcheck, mysqldump, mysqlimport, mysqlshow.