数据库
首页 > 数据库> > 安装Mysql后如何添加联合引擎

安装Mysql后如何添加联合引擎

作者:互联网

我有Mysql 5.5.18
并在展示引擎:


show engines;
+--------------------+---------+------------------------------------------------------------+--------------+------+------------+
| Engine             | Support | Comment                                                    | Transactions | XA   | Savepoints |
+--------------------+---------+------------------------------------------------------------+--------------+------+------------+
| InnoDB             | DEFAULT | Supports transactions, row-level locking, and foreign keys | YES          | YES  | YES        |
| PERFORMANCE_SCHEMA | YES     | Performance Schema                                         | NO           | NO   | NO         |
| MRG_MYISAM         | YES     | Collection of identical MyISAM tables                      | NO           | NO   | NO         |
| CSV                | YES     | CSV storage engine                                         | NO           | NO   | NO         |
| MyISAM             | YES     | MyISAM storage engine                                      | NO           | NO   | NO         |
| MEMORY             | YES     | Hash based, stored in memory, useful for temporary tables  | NO           | NO   | NO         |
+--------------------+---------+------------------------------------------------------------+--------------+------+------------+

如你所见联邦引擎不是列表之一.我需要启用它!任何想法为什么列表中缺少BLACKHOLE,FEDERATED和ARCHIVE引擎?以及如何添加/启用它们?
编辑
我有ubuntu 11.10并从ppa安装了mysql …我已将以下内容添加到/etc/apt/sources.list

deb http://ppa.launchpad.net/nathan-renniewaldock/ppa/ubuntu oneiric main
deb-src http://ppa.launchpad.net/nathan-renniewaldock/ppa/ubuntu oneiric main

谢谢你的帮助

解决方法:

我设法找到了解决方案……
有一个插件已经可以在

/usr/lib/mysql/plugin/ha_federated.so

我刚刚以root身份登录到mysql并运行以下查询

mysql>安装插件联合soname’ha_federated.so’;

然后我添加联盟到my.cnf并重新启动mysql

标签:mysql,ubuntu,mysql-5-5,storage-engine
来源: https://codeday.me/bug/20190805/1593683.html