Linux-6.5下 基于MariaDB-10 GTID多线程 的配置解析
一、配置MASTER节点
MariaDB [(none)]> SHOW PROCESSLIST; +----+-------------+------------------------+------+-------------+------+-----------------------------------------------------------------------+------------------+----------+ | Id | User | Host | db | Command | Time | State | Info | Progress | +----+-------------+------------------------+------+-------------+------+-----------------------------------------------------------------------+------------------+----------+ | 3 | system user | | NULL | Connect | 1785 | Waiting for work from SQL thread | NULL | 0.000 | | 4 | system user | | NULL | Connect | 1785 | Waiting for work from SQL thread | NULL | 0.000 | | 8 | repluser | slave.xiaoma.com:41243 | NULL | Binlog Dump | 954 | Master has sent all binlog to slave; waiting for binlog to be updated | NULL | 0.000 | | 17 | root | localhost | NULL | Query | 0 | init | SHOW PROCESSLIST | 0.000 | +----+-------------+------------------------+------+-------------+------+-----------------------------------------------------------------------+------------------+----------+ 4 rows in set (0.00 sec) MariaDB [(none)]>
MariaDB [(none)]> SHOW PROCESSLIST; +----+-------------+-----------+------+---------+---------+-----------------------------------------------------------------------------+------------------+----------+ | Id | User | Host | db | Command | Time | State | Info | Progress | +----+-------------+-----------+------+---------+---------+-----------------------------------------------------------------------------+------------------+----------+ | 3 | system user | | NULL | Connect | 3225828 | Waiting for work from SQL thread | NULL | 0.000 | | 4 | system user | | NULL | Connect | 3225828 | Waiting for work from SQL thread | NULL | 0.000 | | 6 | root | localhost | NULL | Query | 0 | init | SHOW PROCESSLIST | 0.000 | | 7 | system user | | NULL | Connect | 1006 | Waiting for master to send event | NULL | 0.000 | | 8 | system user | | NULL | Connect | 535 | Slave has read all relay log; waiting for the slave I/O thread to update it | NULL | 0.000 | +----+-------------+-----------+------+---------+---------+-----------------------------------------------------------------------------+------------------+----------+ 5 rows in set (0.00 sec) MariaDB [(none)]>
Welcome to the xiaomazi blog!!
本文出自 “不怕鬼的小马子” 博客,请务必保留此出处http://xiaomazi.blog.51cto.com/5891742/1408559
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。