安装MariaDB Archive Engine

时间:2014-11-18 14:25:10

标签: mysql linux debian mariadb

我已安装MariaDB on my Debian,但遗失了Archive Engine。 有没有办法安装Archive Engine?

我没有在/ usr / lib / mysql / plugin目录中提交ha_archive

2 个答案:

答案 0 :(得分:6)

尝试使用SQL shell安装插件。

  

MariaDB的> INSTALL PLUGIN存档SONAME'ha_archive.so';

显示插件

  

MariaDB的>显示引擎\ G

编辑:

我在ubuntu上安装了mariadb-10.x,默认启用了ARCHIVE

  

MariaDB的>显示引擎\ G

*************************** 7. row ***************************
      Engine: ARCHIVE
     Support: YES
     Comment: Archive storage engine
Transactions: NO
          XA: NO
  Savepoints: NO

答案 1 :(得分:0)

我通过以root用户身份登录在MariaDB中输入以下命令来修复此问题 -

MariaDB [(none)]> INSTALL SONAME 'ha_archive';
Query OK, 0 rows affected (0.33 sec)

检查是否已安装 -

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