I have installed MariaDB on my Debian but Archive Engine is missing. Is there any way how to install Archive Engine?
I haven't file ha_archive in my /usr/lib/mysql/plugin directory
I have installed MariaDB on my Debian but Archive Engine is missing. Is there any way how to install Archive Engine?
I haven't file ha_archive in my /usr/lib/mysql/plugin directory
Try to install plugin using SQL shell.
MariaDB> INSTALL PLUGIN archive SONAME 'ha_archive.so';
Show Plugins
MariaDB> show engines \G
I have installed mariadb-10.x on ubuntu and ARCHIVE
is by default enabled.
MariaDB> show engines \G
*************************** 7. row ***************************
Engine: ARCHIVE
Support: YES
Comment: Archive storage engine
Transactions: NO
XA: NO
Savepoints: NO
I fixed this by entering the following command in MariaDB by logging as a root user -
MariaDB [(none)]> INSTALL SONAME 'ha_archive';
Query OK, 0 rows affected (0.33 sec)
Check if it is installed -
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)
CREATE TABLE IF NOT EXISTS archive (id int(11) NOT NULL, content text COLLATE utf8_bin NOT NULL) ENGINE=ARCHIVE;
– Julian Ladisch