By cetetek
Hi, there, I have two droplet (vlife-portal & vlife-data ) with the same configuration. vlife-portal have a SSL.
Within both mysql.user, I have set up root@‘private IP’ and grant them related privileges.
And I followed the tutorial in the community to set up master & slave mysql, I tried to make vlife-portal as master and the other as slave. But after I start the slave, I find that I cant connect to vlife-portal.
Then I tested on vlife-portal in my terminal, I can connect to vlife-data’s Mysql directly. However, when I on the vlife-data, I cant connect to vlife-portal.
iptables / firewalls are not enabled. No bind-address in my.cnf. I tried bind-address to 0.0.0.0 still not work.
**Error msg: ** ERROR 2003 (HY000): Can’t connect to MySQL server on ‘private IP’ (110)
Could you please give me an hand on this? Thanks.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This comment has been deleted
Hi @cetetek
Okay, so you actually have a firewall rule that specifically blocks MySQL:
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306
And I don’t see MySQL listening on the port, but only on a socket, so maybe you have the skip-networking defined somewhere in the configuration.
Hi @cetetek
Can you run sudo lsof -iTCP -sTCP:LISTEN -P on the data server?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.