Den*_*eno 0 mysql xampp mariadb federated-storage-engine
我知道很多帖子都提到 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)
Run Code Online (Sandbox Code Playgroud)
我还尝试按照此处的指南运行此命令,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)
我知道这个答案可能晚了几年,但今天早上我在 Windows 开发机器上遇到了同样的问题。我试过 ...
INSTALL PLUGIN federated SONAME 'ha_federatedx.so';
Run Code Online (Sandbox Code Playgroud)
...但它不起作用,我收到了与 Deno 相同的错误。经过一番查找,我发现*.so文件是Linux共享库文件,所以我尝试了以下命令...
INSTALL PLUGIN federated SONAME 'ha_federatedx.dll';
Run Code Online (Sandbox Code Playgroud)
...它成功了!唯一需要注意的是,我正在使用 MariaDB 的实际安装,而不是 XAMPP 中安装的版本,因此实际的 DLL 文件可能需要安装在 XAMPP 中。
希望这能帮助遇到同样问题的其他人。
| 归档时间: |
|
| 查看次数: |
4447 次 |
| 最近记录: |