当前位置:网站首页>Upgrade MySQL 5.1 to 5.611
Upgrade MySQL 5.1 to 5.611
2022-04-23 15:38:00 【franket】
Synchronization after a period of time
mysql> show slave status\G
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: 192.168.100.123
Master_User: repl
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000900
Read_Master_Log_Pos: 766875783
Relay_Log_File: relay-bin.000004
Relay_Log_Pos: 766875942
Relay_Master_Log_File: mysql-bin.000900
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB: mysql,feeddb,mytempdb
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 766875783
Relay_Log_Space: 766876148
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: 0
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id: 3
Master_UUID:
Master_Info_File: /var/lib/mysql/master.info
SQL_Delay: 0
SQL_Remaining_Delay: NULL
Slave_SQL_Running_State: Slave has read all relay log; waiting for the slave I/O thread to update it
Master_Retry_Count: 86400
Master_Bind:
Last_IO_Error_Timestamp:
Last_SQL_Error_Timestamp:
Master_SSL_Crl:
Master_SSL_Crlpath:
Retrieved_Gtid_Set:
Executed_Gtid_Set:
Auto_Position: 0
1 row in set (0.00 sec)
mysql>
Check data consistency
After synchronization , Check consistency , Spot check a key table
[root@upgrade-slave ~]# pt-table-checksum --nocheck-replication-filters --nocheck-binlog-format --replicate=test.checksum --tables key_db.users h=upgrade-master,u=root --ask-pass
Enter MySQL password:
Checksumming key_db.users: 8% 05:38 remain
Checksumming key_db.users: 16% 05:13 remain
Checksumming key_db.users: 25% 04:29 remain
Checksumming key_db.users: 35% 03:48 remain
Checksumming key_db.users: 43% 03:20 remain
Checksumming key_db.users: 50% 03:02 remain
Checksumming key_db.users: 55% 02:55 remain
Checksumming key_db.users: 59% 02:45 remain
Checksumming key_db.users: 63% 02:37 remain
Checksumming key_db.users: 68% 02:23 remain
Checksumming key_db.users: 73% 02:04 remain
Checksumming key_db.users: 78% 01:40 remain
Checksumming key_db.users: 84% 01:14 remain
Checksumming key_db.users: 90% 00:48 remain
Checksumming key_db.users: 95% 00:22 remain
TS ERRORS DIFFS ROWS CHUNKS SKIPPED TIME TABLE
11-26T22:56:42 0 11 14940167 153 0 562.858 key_db.users
[root@upgrade-slave ~]#
[root@upgrade-slave ~]# pt-table-sync --replicate test.checksum h=upgrade-slave,u=root --ask-pass --sync-to-master --databases=key_db --tables=users --print > /tmp/users.sql
Enter password for upgrade-slave:
[root@upgrade-slave ~]#
[root@upgrade-slave ~]# wc -l /tmp/users.sql
1 /tmp/users.sql
[root@upgrade-slave ~]# cat /tmp/users.sql
[root@upgrade-slave ~]#
No inconsistent data found , Consistency check passed
Then find a business low point for business switching
Original address
版权声明
本文为[franket]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231406039159.html
边栏推荐
- Go并发和通道
- [backtrader source code analysis 18] Yahoo Py code comments and analysis (boring, interested in the code, you can refer to)
- YML references other variables
- Hj31 word inversion
- 软件性能测试报告起着什么作用?第三方测试报告如何收费?
- Do keyword search, duplicate keyword search, or do not match
- 【AI周报】英伟达用AI设计芯片;不完美的Transformer要克服自注意力的理论缺陷
- Node.js ODBC连接PostgreSQL
- 通過 PDO ODBC 將 PHP 連接到 MySQL
- Machine learning - logistic regression
猜你喜欢

Mysql database explanation (10)

c语言---指针进阶

山寨版归并【上】

重定向和请求转发详解

Openstack command operation

APISIX jwt-auth 插件存在错误响应中泄露信息的风险公告(CVE-2022-29266)

负载均衡器

Detailed explanation of kubernetes (XI) -- label and label selector

Independent operation smart farm Innovation Forum

Basic concepts of website construction and management
随机推荐
MySQL query library size
Detailed explanation of kubernetes (XI) -- label and label selector
Detailed explanation of redirection and request forwarding
通過 PDO ODBC 將 PHP 連接到 MySQL
时序模型:门控循环单元网络(GRU)
2022年中国数字科技专题分析
携号转网最大赢家是中国电信,为何人们嫌弃中国移动和中国联通?
What if the server is poisoned? How does the server prevent virus intrusion?
pgpool-II 4.3 中文手册 - 入门教程
字符串最后一个单词的长度
JVM-第2章-类加载子系统(Class Loader Subsystem)
什么是CNAS认证?CNAS认可的软件测评中心有哪些?
Wechat applet customer service access to send and receive messages
c语言---字符串+内存函数
Go语言切片,范围,集合
Collation of errors encountered in the use of redis shake
T2 icloud calendar cannot be synchronized
重定向和请求转发详解
Leetcode学习计划之动态规划入门day3(198,213,740)
mysql乐观锁解决并发冲突