「腾达签名」 - 解决苹果app/ipa/tf/ios企业超级签名下载掉签难题「腾达签名」

专注IOS苹果签名内测
解决APP签名下载难题

mysql启用innodb

mysql启用innodb-「腾达签名」

mysql 5.1默认只启用MyISAM, 使用INNODB要做一下修改:

=== InnoDB Storage Engine ===
Plugin Name: innobase
Description: Transactional Tables using InnoDB
Supports build: static and dynamic
Configurations: max, max-no-ndb

mysql 5.1版本之后,要使用innodb有两种方法

(1).静态编译的时候加入 --with-plugin-innobase
(2).动态扩展 启动mysqld后

mysql> INSTALL PLUGIN innodb SONAME 'ha_innodb.so'
mysql> show plugin

就可以看见了
动态的话plugin_dir要指定正确:

[mysqld]
plugin_dir=/path/to/plugin/directory

最后,通过动态方式,解决了这个转换问题.

查看mysql 5.1 是否安装了innodb插件(mysql 5.0使用: show variables like 'have_%';)

mysql> show plugins;
+------------+--------+----------------+--------------+---------+
| Name | Status | Type | Library | License |
+------------+--------+----------------+--------------+---------+
| binlog | 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 | |
+------------+--------+----------------+--------------+---------+
5 rows in set (0.00 sec)

发现没有安装 INNODB,执行下面语句:

mysql> install plugin innodb soname 'ha_innodb.so';

再次查看:

mysql> show plugins;
+------------+--------+----------------+--------------+---------+
| Name | Status | Type | Library | License |
+------------+--------+----------------+--------------+---------+
| binlog | 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.so | GPL |
+------------+--------+----------------+--------------+---------+

6 rows in set (0.00 sec)

查看表的类型:

mysql> use web_db;
mysql. show tablse;

随便找个表看类型:

mysql. show create table sys_user;

查看是否有以下字段:

ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8

如何将MyISAM库 导成 INNODB:
在备份出的 xxx.bak文件中 把 ENGINE=MyISAM 全换成 ENGINE=INNODB
再次导入就可以了.
转换表的命令:

alter table POD engine=innodb;

苹果签名www.nanti.net

企业签名www.nanti.net

超级签名www.nanti.net

TF签名www.nanti.net

mysql启用innodb-「腾达签名」
本原创文章未经允许不得转载 | 当前页面:「腾达签名」 » mysql启用innodb

评论