我正在MySql官方网站(https://dev.mysql.com/doc/refman/5.1/en/partitioning.html)中探讨分区.
在第一页中,我发现了插件.
MysqL> show plugins;
+----------------------------+----------+--------------------+---------+---------+
| Name | Status | Type | Library | License |
+----------------------------+----------+--------------------+---------+---------+
| binlog | ACTIVE | STORAGE ENGINE | NULL | GPL |
| MysqL_native_password | ACTIVE | AUTHENTICATION | NULL | GPL |
| MysqL_old_password | ACTIVE | AUTHENTICATION | NULL | GPL |
| sha256_password | ACTIVE | AUTHENTICATION | NULL | GPL |
| MyISAM | ACTIVE | STORAGE ENGINE | NULL | GPL |
| MRG_MYISAM | ACTIVE | STORAGE ENGINE | NULL | GPL |
| MEMORY | ACTIVE | STORAGE ENGINE | NULL | GPL |
| CSV | ACTIVE | STORAGE ENGINE | NULL | GPL |
| InnoDB | ACTIVE | STORAGE ENGINE | NULL | GPL |
| INNODB_TRX | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_LOCKS | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_LOCK_WAITS | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_CMP | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_CMP_RESET | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_CMPMEM | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_CMPMEM_RESET | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_CMP_PER_INDEX | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_CMP_PER_INDEX_RESET | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_BUFFER_PAGE | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_BUFFER_PAGE_LRU | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_BUFFER_POOL_STATS | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_METRICS | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_FT_DEFAULT_STOPWORD | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_FT_DELETED | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_FT_BEING_DELETED | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_FT_CONfig | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_FT_INDEX_CACHE | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_FT_INDEX_TABLE | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_SYS_TABLES | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_SYS_TABLESTATS | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_SYS_INDEXES | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_SYS_COLUMNS | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_SYS_FIELDS | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_SYS_FOREIGN | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_SYS_FOREIGN_COLS | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_SYS_TABLESPACES | ACTIVE | informatION SCHEMA | NULL | GPL |
| INNODB_SYS_DATAFILES | ACTIVE | informatION SCHEMA | NULL | GPL |
| PERFORMANCE_SCHEMA | ACTIVE | STORAGE ENGINE | NULL | GPL |
| FEDERATED | disABLED | STORAGE ENGINE | NULL | GPL |
| ARCHIVE | ACTIVE | STORAGE ENGINE | NULL | GPL |
| BLACKHOLE | ACTIVE | STORAGE ENGINE | NULL | GPL |
| partition | ACTIVE | STORAGE ENGINE | NULL | GPL |
+----------------------------+----------+--------------------+---------+---------+
42 rows in set (0.05 sec)
我心里有一些疑问
>什么是插件?
>运作方式如何?
> MysqL有多少可用插件?
>我可以添加其他插件吗?
>如果我可以添加,那么如何添加?
解决方法:
经过分析关于插件后,我发现了更多有关它的信息.我深入解释.
What is plugins and How it is work?
MysqL支持用于创建服务器组件的插件API.可以在服务器启动时加载插件,也可以在运行时加载和卸载插件,而无需重新启动服务器.该API是通用的,没有指定插件可以做什么.该接口支持的组件包括但不限于存储引擎,全文解析器插件和服务器扩展.
例如,全文分析器插件可用于替换或增强内置的全文分析器.插件可以使用与内置解析器不同的规则将文本解析为单词.如果您需要分析文本特征与内置解析器所期望的特征不同,这将很有用.
The plugin interface is more general than the older user-defined
function (UDF) interface.
How much plugin available for MySql? (Types of Plugins)
>存储引擎
>全文解析器
>守护程序
> informatION_SCHEMA表
>半同步复制
>审计
>认证
>密码验证和强度检查
>协议跟踪
>查询重写
Can i add other plugins ? / If i can add then how to add ?
使用INSTALL PLUGIN语句安装的插件:
可以在运行时使用INSTALL PLUGIN语句加载位于插件库文件中的插件.该语句还在MysqL.plugin表中注册了插件,以使服务器在后续重启时将其加载.因此,INSTALL PLUGIN需要MysqL.plugin表的INSERT特权.
MysqL> INSTALL PLUGIN myplugin SONAME 'somepluglib.so';
卸载插件
在运行时,UNINSTALL PLUGIN语句禁用和卸载服务器已知的插件.该语句卸载插件并将其从MysqL.plugin表中删除(如果已在其中注册).因此,UNINSTALL PLUGIN语句需要MysqL.plugin表的DELETE特权.如果插件不再在表中注册,服务器将不会自动加载插件以供后续重启.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。