MySQL primary master replication +keepalived high Availability (use VIP to Access database prompts not to allow connections)

Source: Internet
Author: User
Tags access database



ERROR 1130 (HY000): Host ' Nginx-vip ' isn't 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

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)


This article comes from "Everything must be causal." "Blog, be sure to keep this provenance http://gaorui1989.blog.51cto.com/4016591/1716836

MySQL primary master replication +keepalived high Availability (use VIP to Access database prompts not to allow connections)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.