mysql主主複製+keepalived高可用(使用VIP訪問數據庫提示不允許連接)



ERROR 1130 (HY000): Host 'nginx-vip' is not allowed to connect to this MySQL server



mysql> GRANT ALL PRIVILEGES ON *.* TO 'slave'@'192.168.0.232' IDENTIFIED BY 'slave' WITH GRANT OPTION;

Query OK, 0



mysql> use mysql;

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A


Database changed

mysql> select user,host from user;

+-------+---------------+

| user  | host          |

+-------+---------------+

| root  | %             |

| root  | 127.0.0.1     |

| slave | 192.168.0.231 |

| slave | 192.168.0.232 |

| root  | ::1           |

|       | localhost     |

|       | nginx01       |

| root  | nginx01       |

+-------+---------------+

8 rows in set (0.00 sec)


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章