当前位置:网站首页>MySQL master-slave replication data synchronization, summary of common problems
MySQL master-slave replication data synchronization, summary of common problems
2022-07-25 20:41:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm the king of the whole stack .
One 、 Problem description :
When we configure MySQL Main synchronization , Yes, master synchronization can be realized , But after restarting the machine or for other reasons MySQL Can't sync .
Two 、Slave Two key processes
mysql replication in slave There are two key processes on the machine , No one can die , One is slave_sql_running, One is Slave_IO_Running, One responsible for communicating with the host io signal communication , A person in charge of his own slave mysql process .
3、 ... and 、 If it is Slave_SQL_Running:no:
The solution is as follows :
MariaDB [(none)]> stop slave;
MariaDB [(none)]> SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1; START SLAVE;
MariaDB [(none)]> start slave;
MariaDB [(none)]> show slave status\GFour 、 If it is slave_io_running:no
The solution is as follows :
1、 Look at the master server
MariaDB [(none)]> show master status\G2、 View... From the server
The problem : Find out Master_Log_File No corresponding .
3、 appear Slave_IO_Running: No Operation on the machine
MariaDB [(none)]> slave stop;
MariaDB [(none)]>CHANGE MASTER TO MASTER_LOG_FILE='mysql-bin.000026', MASTER_LOG_POS=0;
MariaDB [(none)]> slave start;
MariaDB [(none)]> show slave status\GThis problem will be solved !
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/111543.html Link to the original text :https://javaforall.cn
边栏推荐
猜你喜欢

预处理指令

leetcode-6129:全 0 子数组的数目

KEGG通路的从属/注释信息如何获取

【高等数学】【5】定积分及应用

增加 swap 空间

Step num problem
![[today in history] July 2: BitTorrent came out; The commercial system linspire was acquired; Sony deploys Playstation now](/img/7d/7a01c8c6923077d6c201bf1ae02c8c.png)
[today in history] July 2: BitTorrent came out; The commercial system linspire was acquired; Sony deploys Playstation now

Chinese son-in-law OTA Ono became the first Asian president of the University of Michigan, with an annual salary of more than 6.5 million!

matlab----EEGLab查看脑电信号

Leetcode-6131: the shortest dice sequence impossible to get
随机推荐
预处理指令
Chinese son-in-law OTA Ono became the first Asian president of the University of Michigan, with an annual salary of more than 6.5 million!
Remote - actual combat
How to realize reliable transmission with UDP?
Remote - basic principle introduction
程序的编译和运行
[advanced mathematics] [5] definite integral and its application
Character function and string function (2)
Rand1 generates rand9
智能电子界桩自然保护区远程监控解决方案
Volcanic engine Xiang Liang: machine learning and intelligent recommendation platform multi cloud deployment solution officially released
How to use buffer queue to realize high concurrent order business (glory Collection Edition)
[today in history] June 30: von Neumann published the first draft; The semiconductor war in the late 1990s; CBS acquires CNET
test
Increase swap space
leetcode-6127:优质数对的数目
Follow up of Arlo's thinking
[leetcode] 28. Implement strstr ()
[today in history] July 8: PostgreSQL release; SUSE acquires the largest service provider of k8s; Activision Blizzard merger
Compilation and operation of program