0

我知道很多帖子都提到 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)

4

1 回答 1

3

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

INSTALL PLUGIN federated SONAME 'ha_federatedx.so';

...但它没有用,我收到了与 Deno 相同的错误。经过一番搜索,我发现*.so文件是Linux共享库文件,所以我尝试了以下命令...

INSTALL PLUGIN federated SONAME 'ha_federatedx.dll';

......它奏效了!唯一需要注意的是,我正在使用 MariaDB 的实际安装,而不是 XAMPP 中安装的版本,因此可能需要在 XAMPP 中安装实际的 DLL 文件。

希望这将帮助遇到同样问题的其他人。

于 2018-07-18T17:27:12.650 回答