mariadb安装与卸载插件

mariadb上有很多功能插件,下面简要的说一下在命令行中的安装与卸载方法。本例以实现半同步功能的插件为例说明。
安装

MariaDB [(none)]> install plugin rpl_semi_sync_slave soname 'semisync_slave.so';
Query OK, 0 rows affected (0.00 sec)

卸载

MariaDB [(none)]> uninstall plugin rpl_semi_sync_slave;
Query OK, 0 rows affected (0.00 sec)

帮助

MariaDB [(none)]> help plugin
Many help items for your request exist.
To make a more specific request, please type 'help <item>',
where <item> is one of the following
topics:
   INSTALL PLUGIN
   SHOW
   UNINSTALL PLUGIN

MariaDB [(none)]> help install plugin;
Name: 'INSTALL PLUGIN'
Description:
Syntax:
INSTALL PLUGIN plugin_name SONAME 'shared_library_name'

This statement installs a server plugin. It requires the INSERT
privilege for the mysql.plugin table.

plugin_name is the name of the plugin as defined in the plugin
descriptor structure contained in the library file (see
http://dev.mysql.com/doc/refman/5.5/en/plugin-data-structures.html).
Plugin names are not case sensitive. For maximal compatibility, plugin
names should be limited to ASCII letters, digits, and underscore
because they are used in C source files, shell command lines, M4 and
Bourne shell scripts, and SQL environments.

shared_library_name is the name of the shared library that contains the
plugin code. The name includes the file name extension (for example,
libmyplugin.so, libmyplugin.dll, or libmyplugin.dylib).

The shared library must be located in the plugin directory (the
directory named by the plugin_dir system variable). The library must be
in the plugin directory itself, not in a subdirectory. By default,
plugin_dir is the plugin directory under the directory named by the
pkglibdir configuration variable, but it can be changed by setting the
value of plugin_dir at server startup. For example, set its value in a
my.cnf file:

[mysqld]
plugin_dir=/path/to/plugin/directory

If the value of plugin_dir is a relative path name, it is taken to be
relative to the MySQL base directory (the value of the basedir system
variable).

INSTALL PLUGIN loads and initializes the plugin code to make the plugin
available for use. A plugin is initialized by executing its
initialization function, which handles any setup that the plugin must
perform before it can be used. When the server shuts down, it executes
the deinitialization function for each plugin that is loaded so that
the plugin has a change to perform any final cleanup.

INSTALL PLUGIN also registers the plugin by adding a line that
indicates the plugin name and library file name to the mysql.plugin
table. At server startup, the server loads and initializes any plugin
that is listed in the mysql.plugin table. This means that a plugin is
installed with INSTALL PLUGIN only once, not every time the server
starts. Plugin loading at startup does not occur if the server is
started with the --skip-grant-tables option.

A plugin library can contain multiple plugins. For each of them to be
installed, use a separate INSTALL PLUGIN statement. Each statement
names a different plugin, but all of them specify the same library
name.

URL: http://dev.mysql.com/doc/refman/5.5/en/install-plugin.html

MariaDB [(none)]> help uninstall plugin;
Name: 'UNINSTALL PLUGIN'
Description:
Syntax:
UNINSTALL PLUGIN plugin_name

This statement removes an installed server plugin. It requires the
DELETE privilege for the mysql.plugin table.

plugin_name must be the name of some plugin that is listed in the
mysql.plugin table. The server executes the plugin's deinitialization
function and removes the row for the plugin from the mysql.plugin
table, so that subsequent server restarts will not load and initialize
the plugin. UNINSTALL PLUGIN does not remove the plugin's shared
library file.

URL: http://dev.mysql.com/doc/refman/5.5/en/uninstall-plugin.html
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
卸载mariadb银河系统,可以按照以下步骤进行操作: 1. 首先,使用以下命令卸载麒麟系统自带的mariadb: ``` rpm -e --nodeps mariadb-common mariadb mariadb-server mariadb-connector-c mariadb-errmessage ``` \[1\] 2. 接下来,需要开通4567端口,将其加入防火墙。可以使用以下命令检查是否已经监听了4567端口: ``` netstat -nltp | grep mysqld ``` 如果看到类似于下面的输出,表示4567端口已经在监听: ``` tcp 0 0 0.0.0.0:4567 0.0.0.0:* LISTEN 8305/mysqld ``` 然后,使用以下命令将4567端口加入防火墙: ``` firewall-cmd --add-port=4567/tcp --permanent firewall-cmd --reload ``` \[2\] 3. 最后,如果你需要支持其他数据库,可以根据需要安装相应的数据库软件。mariadb银河系统支持多种数据库,包括Oracle、Dameng、Kingbase ES、Gbase、oscar、DB2、Sybase、Informix、Mysql、PostgreSQL、MariaDB、达梦、人大金仓、神通、南大通用、上容国内外主流数据库。\[3\] 请注意,卸载安装数据库软件可能会对系统产生影响,请谨慎操作并备份重要数据。 #### 引用[.reference_title] - *1* *2* [银河麒麟服务器操作系统V10SP2搭建mysql的galera集群](https://blog.csdn.net/weixin_54752007/article/details/128280294)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [银河麒麟操作系统下载](https://blog.csdn.net/weixin_33138295/article/details/116158125)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

okman312

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值