我知道很多帖子都提到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)
答案 0 :(得分:2)
我知道这个答案可能来几年了,但是今天早上我在Windows开发计算机上遇到了同样的问题。我尝试过...
INSTALL PLUGIN federated SONAME 'ha_federatedx.so';
...但是它不起作用,并且我收到了与Deno相同的错误。经过一番搜索,我发现* .so文件是Linux共享库文件,因此我尝试了以下命令...
INSTALL PLUGIN federated SONAME 'ha_federatedx.dll';
...而且有效!唯一的警告是我正在实际安装MariaDB,而不是XAMPP中安装的版本,因此实际的DLL文件可能需要安装在XAMPP中。
希望这会帮助遇到相同问题的其他人。