如何在mariadb中安装联邦引擎?

flseospp  于 2021-06-21  发布在  Mysql
关注(0)|答案(1)|浏览(404)

我知道很多post在xampp中提到mariadb已经包括了联邦引擎,但不幸的是,联邦引擎还没有安装在我的mariadb中,如下表所示。

MariaDB [information_schema]> show engines;
+--------------------+---------+--------------------------------------------------------------------------------------------------+--------------+------+------------+
| Engine             | Support | Comment                                                                                          | Transactions | XA   | Savepoints |
+--------------------+---------+--------------------------------------------------------------------------------------------------+--------------+------+------------+
| CSV                | YES     | CSV storage engine                                                                               | NO           | NO   | NO         |
| InnoDB             | DEFAULT | Percona-XtraDB, Supports transactions, row-level locking, foreign keys and encryption for tables | YES          | YES  | YES        |
| MEMORY             | YES     | Hash based, stored in memory, useful for temporary tables                                        | NO           | NO   | NO         |
| MyISAM             | YES     | MyISAM storage engine                                                                            | NO           | NO   | NO         |
| MRG_MyISAM         | YES     | Collection of identical MyISAM tables                                                            | NO           | NO   | NO         |
| Aria               | YES     | Crash-safe tables with MyISAM heritage                                                           | NO           | NO   | NO         |
| PERFORMANCE_SCHEMA | YES     | Performance Schema                                                                               | NO           | NO   | NO         |
| SEQUENCE           | YES     | Generated tables filled with sequential values                                                   | YES          | NO   | YES        |
+--------------------+---------+--------------------------------------------------------------------------------------------------+--------------+------+------------+
8 rows in set (0.00 sec)

我也试着按照这里的指南运行这个命令 INSTALL PLUGIN federated SONAME 'ha_federatedx.so'; 但有个错误 ERROR 1126 (HY000): Can't open shared library 'D:\xampp\mysql\lib\plugin\ha_federatedx.so.dll' (errno: 2, The specified module could not be found. . 有人能告诉我如何在不重新安装xampp的情况下安装联邦引擎吗?我的数据库版本是 mysql Ver 15.1 Distrib 10.1.10-MariaDB, for Win32 (AMD64)

wpcxdonn

wpcxdonn1#

我知道这个答案可能来得太晚了好几年,但我今天早上在windows开发机器上遇到了同样的问题。我试过。。。

INSTALL PLUGIN federated SONAME 'ha_federatedx.so';

... 但它不起作用,我收到了和deno一样的错误。经过一番搜索,我发现*.so文件是linux共享库文件,所以我尝试了以下命令。。。

INSTALL PLUGIN federated SONAME 'ha_federatedx.dll';

... 成功了!唯一需要注意的是,我使用的是实际安装的mariadb,而不是安装在xampp中的版本,因此实际的dll文件可能需要安装在xampp中。
希望这能帮助其他遇到同样问题的人。

相关问题