hava加载mysql_MySQL动态加载innodb存储引擎-bug小计

mysql> select version();

+------------+

| version()  |

+------------+

| 5.1.45-log |

+------------+

show variables like "have_%";

| have_dynamic_loading    | YES    |   #  have_dynamic_loading=yes 表示支持动态加载

| have_innodb             | YES      |

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

Query OK, 0 rows affected (0.58 sec)

mysql> show plugins;

+------------+--------+----------------+--------------+---------+

| Name       | Status | Type           | Library      | License |

+------------+--------+----------------+--------------+---------+

| binlog     | ACTIVE | STORAGE ENGINE | NULL         | GPL     |

| partition  | 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|

+------------+--------+----------------+--------------+---------+

mysql> uninstall plugin innodb;Query OK, 0 rows affected, 1 warning (0.00 sec)

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

ERROR 1125 (HY000): Function 'innodb' already exists

*. 我uninstall后在重新加载,报错。发现是mysql的一个bug,参考http://bugs.mysql.com/bug.php?id=42610

mysql> show  plugins;

+------------+---------+----------------+--------------+---------+

| Name       | Status  | Type           | Library      | License |

+------------+---------+----------------+--------------+---------+

| binlog     | ACTIVE  | STORAGE ENGINE | NULL         | GPL     |

| partition  | 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     | DELETED | STORAGE ENGINE | ha_innodb.so | GPL     |

+------------+---------+----------------+--------------+---------+

mysql> show variables like "have_%";

| have_innodb             | DISABLED |

mysql> show engines;

+------------+---------+------------------------------------------------------------+--------------+------+------------+

| Engine     | Support | Comment                                                    | Transactions | XA   | Savepoints |

+------------+---------+------------------------------------------------------------+--------------+------+------------+

| InnoDB     | NO      | Supports transactions, row-level locking, and foreign keys | NULL         | NULL | NULL       |

| CSV        | YES     | CSV storage engine                                         | NO           | NO   | NO         |

| MEMORY     | YES     | Hash based, stored in memory, useful for temporary tables  | NO           | NO   | NO         |

+------------+---------+------------------------------------------------------------+--------------+------+------------+

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值