码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2015-11-25 19:35:50      阅读:336      评论:0      收藏:0      [点我收藏+]

标签:mysql   error 1130 (hy000)   



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)


本文出自 “凡事必有因果。” 博客,请务必保留此出处http://gaorui1989.blog.51cto.com/4016591/1716836

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

标签:mysql   error 1130 (hy000)   

原文地址:http://gaorui1989.blog.51cto.com/4016591/1716836

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!