By dmy37
Hello, can anyone help me with this issue?
Connection failed: Host ‘xxx.xxx.xx.xxxx’ is not allowed to connect to this MySQL server
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!
Hi, mysql supports per host permissions which means that your database user must have permission to be able to connect from IP “xxx.xxx.xx.xxxx”.
Here is the relevant mysql documentation:
https://dev.mysql.com/doc/refman/5.7/en/access-control.html
More specific to your issue, this sub-section details how it compares the user and the host the user is connecting from:
https://dev.mysql.com/doc/refman/5.7/en/connection-access.html
This stackoverflow answer has a good overview on making sure you can access your mysql database remotely, including example configs and permission statements:
https://stackoverflow.com/a/32716003
Good luck!
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.