MariaDB starting with 10.4.6
MariaDB starting with 10.5.2
From MariaDB 10.5.2,
mysql_plugin is the symlink, and
mariadb-plugin the binary name.
mariadb-plugin is a tool for enabling or disabling plugins.
mariadb-plugin must be run while the server is offline, and works by adding or removing rows from the mysql.plugin table.
mariadb-plugin basically has two use cases:
- adding a plugin even before the first real server startup
- removing a plugin that crashes the server on startup
For the install use case, adding a plugin-load-add entry to
my.cnf or in a separate include option file, is probably a better alternative. In case of a plugin loaded via a
mysql.plugin crashing the server, uninstalling the plugin with the help of
mariadb-plugin can be the only viable action though.
mariadb-plugin [options] <plugin> ENABLE|DISABLE
mariadb-plugin expects to find a configuration file that indicates how to configure the plugins. The configuration file is by default the same name as the plugin, with a
.ini extension. For example:
mariadb-plugin crazyplugins ENABLE
mariadb-plugin will look for a file called
crazyplugins crazyplugin1 crazyplugin2 crazyplugin3
The first line should contain the name of the library object file, with no extension. The other lines list the names of the components. Each value should be on a separate line, and the
# character at the start of the line indicates a comment.
The following options can be specified on the command line, while some can be specified in the
[mysqld] group of any option file. For options specified in a
[mysqld] group, only the
--plugin-dir options can be used - the rest are ignored.
|The base directory for the server.|
|The data directory for the server.|
|Display help and exit.|
|Path to |
|Path to |
|Do not read values from configuration file.|
|The plugin directory for the server.|
|Read plugin information from configuration file specified instead of from |
|Show default values from configuration file.|
|More verbose output; you can use this multiple times to get even more verbose output.|
|Output version information and exit.|