How to connect a one click install wordpress to a database on one click install phpmyadmin droplet

I have a one-click install phpmyadmin droplet with the database I want my wordpress to use. My wordpress is a one-click install as well.

I’m tryign to edit the wp-config.php file with the database credentials. What would the hostname be for my case? Is it phpmyadmin droplet’s ip address with port number example 123.456.789:3306?

I can’t seem to get the “error establishing database connection”


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hi there,

In order to be able to do that you would need to configure your MySQL server to accept external connections as per this tutorial here:

As an alternative, I could suggest installing PHPmyAdmin on your WordPress Droplet manually as described here:

That way you will not have to open the MySQL service for external connections.

Hope that this helps. Regards, Bobby