mysql HA 方案(3):MHA
1 ERROR 1045 (28000): Access denied for user 問題,查了好久,發現是有為null的user,刪除對應的記錄就好了
[root@db-181 ~]# mysql -u rep -p -h db-183
Enter password:
ERROR 1045 (28000): Access denied for user 'rep'@'db-181' (using password: YES)
[root@db-181 ~]# mysql -u root -p -h db-183
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'db-181' (using password: YES)
mysql> select user,host from mysql.user;
+--------+------------+
| user | host |
+--------+------------+
| dba | % |
| rep | % |
| sbtest | % |
| root | 127.0.0.1 |
| root | ::1 |
| | db-181 |
| root | db-181 |
| root | db-182 |
| root | db-183 |
| | localhost |
| rep | localhost |
| root | localhost |
+--------+------------+
13 rows in set (0.00 sec)
mysql> delete from mysql.user where user='' and host='db-181';
Query OK, 1 row affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
2 A question about using MHA "purge_relay_logs script" :
Thanks for the MHA and she is very useful to us .
But i have a question about using "purge_relay_logs script".
IN the "Requirements and Limitations" you write :
It is recommended invoking cron at different time between slaves.
If all slaves invoke purge_relay_logs at the same time, none of the slave might not have necessary relay log events at crash.
It is no problem in most cases. But in an extreme scenario ,the Latest Slave has just switched relay log .
After the point if i execute purge_relay_logs script. and the master crash at the same time.
But other slaves haven't the lasted relay log (have some gap ) and the dead master is unreachable via SSH.
In the scenario , MHA(0.53) can recover the cluster or not ?
我們目前的想法是relay log通過我們的定時任務進行清除,同時維護relay index。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/758322/viewspace-722418/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【MySQL】Consul+MHA高考用方案MySql
- Mysql MHA部署-04MHA配置MySql
- mysql-HAMySql
- MySQL MHA部署 Part 5 MHA部署指南MySql
- Mysql MHA部署-03MHA軟體安裝MySql
- mysql5.7MHA配置MySql
- MySQL MHA部署實戰MySql
- Mysql 5.7 MHA 高可用MySql
- MySQL MHA部署 Part 6 MHA故障轉移測試MySql
- MySQL高可用方案MHA線上切換的步驟及原理MySql
- MySQL MHA部署 Part 7 MHA手動切換測試MySql
- 基於 MHA 高可用的 MySQLMySql
- MySQL MHA詳細搭建過程MySql
- Mysql MHA部署-05故障轉移MySql
- mysql高可用架構MHA搭建MySql架構
- MySQL MHA部署與測試-下篇MySql
- MySQL MHA資訊的收集【Filebeat+logstash+MySQL】MySql
- HA腦裂問題解決方案
- Zabbix 6.0:原生高可用(HA)方案部署
- 技術分享 | ProxySQL 搭配 MySQL HA (下)MySql
- 【MySQL】MHA的基本配置及註釋MySql
- Mysql MHA部署-02主從複製MySql
- Mysql MHA部署-06手動切換MySql
- Mysql MHA部署-07常見問題MySql
- MySQL MHA 執行狀態監控MySql
- MHA+MySQL主從配置實現MySQL高可用MySql
- LB與HA解決方案:nginx+keepalivedNginx
- LB與HA解決方案:haproxy+keepalived
- mysql高可用架構MHA搭建(centos7+mysql5.7.28)MySql架構CentOS
- MySQL MHA工具的優缺點歸納MySql
- 【MySQL】MHA原始碼之主庫選取(二)MySql原始碼
- MySQL 實現高可用架構之 MHAMySql架構
- MySQL高可用架構-MMM、MHA、MGR、PXCMySql架構
- Mysql 高可用(MHA)-讀寫分離(Atlas)MySql
- 【MySQL】MHA原始碼之監控檢查(一)MySql原始碼
- MySQL高可用架構之MHA 原理與實踐MySql架構
- MySQL高可用之MHA切換測試(switchover & failover)MySqlAI
- MySQL 5.7和8.0 MHA架構下sysbench壓測MySql架構
- MySQL——MHA高可用群集部署及故障測試MySql