I’m trying to figure out how to enable database connection to the database on one of our droplets from the remote application. I believe the IP is the same as the droplet, but is the port also 3306 or any other?
Anything else that needs to be done to make it happen?
I tried by just using the default port (above), the ip address and right credentials for the given database, but no luck.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
This tutorial includes a section on enabling remote connections in MySQL. By default the MySQL service only allows connections from localhost so some configuration changes and a user with permissions to access your databases from a remote host are required.
Tried this tutorial for adding IPs but my file at /etc/mysql/my.cnf does not have a section with [mysqld]
where do I add
and how do I add several IPs?
Thx Mike
Thanks @ryanpq - I’ll follow this tutorial and see how I get on.