? Getting started building a mysqlnd plugin
锟斤拷锟� ?
锟斤拷锟斤拷学院 www.cainiaoplay.com
PHP Manual
MySQL
Mysqlnd 锟斤拷锟接革拷锟狡和革拷锟截撅拷锟斤拷锟斤拷
Mysqlnd 锟斤拷锟接革拷锟狡和革拷锟截撅拷锟斤拷锟斤拷
锟斤拷锟�
锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷
Setup
Running statements
锟斤拷锟斤拷状态
SQL Hints (SQL 锟脚伙拷锟斤拷)
锟斤拷锟斤拷
XA/Distributed Transactions
锟斤拷锟今级憋拷锟揭伙拷锟斤拷锟�
Global transaction IDs (GTID)
Cache integration
锟斤拷锟斤拷转锟斤拷
锟斤拷锟斤拷锟酵凤拷片
MySQL Fabric
锟斤拷锟斤拷
Architecture
锟斤拷锟接筹拷锟斤拷锟叫伙拷
锟斤拷锟斤拷锟斤拷锟�
锟斤拷锟斤拷锟斤拷
锟教达拷锟斤拷
锟斤拷锟斤拷锟斤拷
锟斤拷锟截撅拷锟斤拷
Read-write splitting
Filter
Service level and consistency
Global transaction IDs
Cache integration
Supported clusters
XA/Distributed transactions
锟斤拷装锟斤拷锟斤拷锟斤拷
锟斤拷锟斤拷
锟斤拷装
锟斤拷锟斤拷时锟斤拷锟斤拷
Plugin configuration file (>=1.1.x)
预锟斤拷锟藉常锟斤拷
Mysqlnd_ms 锟斤拷锟斤拷
mysqlnd_ms_dump_servers
— Returns a list of currently configured servers
mysqlnd_ms_fabric_select_global
— Switch to global sharding server for a given table
mysqlnd_ms_fabric_select_shard
— Switch to shard
mysqlnd_ms_get_last_gtid
— 锟斤拷锟斤拷锟斤拷锟斤拷全锟斤拷同锟斤拷 ID (GTID)
mysqlnd_ms_get_last_used_connection
— Returns an array which describes the last used connection
mysqlnd_ms_get_stats
— Returns query distribution and connection statistics
mysqlnd_ms_match_wild
— Finds whether a table name matches a wildcard pattern or not
mysqlnd_ms_query_is_select
— 锟斤拷询锟斤拷锟斤拷锟斤拷 SQL 锟结发锟酵革拷 master锟斤拷slave 锟斤拷锟斤拷锟斤拷锟绞癸拷玫锟� MySQL server 执锟叫★拷
mysqlnd_ms_set_qos
— Sets the quality of service needed from the cluster
mysqlnd_ms_set_user_pick_server
— Sets a callback for user-defined read/write splitting
mysqlnd_ms_xa_begin
— Starts a distributed/XA transaction among MySQL servers
mysqlnd_ms_xa_commit
— Commits a distributed/XA transaction among MySQL servers
mysqlnd_ms_xa_gc
— Garbage collects unfinished XA transactions after severe errors
mysqlnd_ms_xa_rollback
— Rolls back a distributed/XA transaction among MySQL servers
Change History
PECL/mysqlnd_ms 1.6 series
PECL/mysqlnd_ms 1.5 series
PECL/mysqlnd_ms 1.4 series
PECL/mysqlnd_ms 1.3 series
PECL/mysqlnd_ms 1.2 series
PECL/mysqlnd_ms 1.1 series
PECL/mysqlnd_ms 1.0 series