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)
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)
相关文章推荐
- 如何在自己的网站中设置qq客服
- 社交产品后端架构设计--转载
- 关于12306网站中无法修改或注册学生优惠区间的问题
- IIS上部署网站404错误
- iOS 应用架构谈 本地持久化方案
- watchOS 2:架构变化和开发注意事项
- 收藏几个比较好的国外网站
- 学习网站分享
- 响应式web网站设计制作方法
- css3媒体查询实现网站响应式布局
- dubbo学习网站记录
- 领域驱动设计之体系架构模式交互过程与最佳实践
- 领域驱动设计之体系架构模式
- Win10手记-IIS部署网站问题解决
- 中小型网站架构分析及优化
- WebRTC源码架构浅析
- 几种常见Android代码架构分析
- 游戏服务器架构设计
- mysql数据迁移后,打开网站提示500----一次由ip addr引发的血案
- 网站优化应注意的事项