# 查看mysql的插件
show plugins \G
# 安装mysql 插件
INSTALL PLUGIN spartan SONAME 'ha_spartan.so';
# 卸载
UNINSTALL PLUGIN spartan;
# 查看插件目录
show variables like 'plugin_dir'
# 查看mysql的插件
show plugins \G
# 安装mysql 插件
INSTALL PLUGIN spartan SONAME 'ha_spartan.so';
# 卸载
UNINSTALL PLUGIN spartan;
# 查看插件目录
show variables like 'plugin_dir'
转载于:https://www.cnblogs.com/kisstherain/p/10409148.html