您的位置:首页 > 运维架构 > 网站架构

mysql主主复制+keepalived高可用(使用VIP访问数据库提示不允许连接)

2015-11-25 18:02 811 查看
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)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: