By mlmarinas
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”
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 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:
https://www.digitalocean.com/community/tutorials/how-to-allow-remote-access-to-mysql
As an alternative, I could suggest installing PHPmyAdmin on your WordPress Droplet manually as described here:
https://www.digitalocean.com/community/questions/how-to-install-manually-phpmyadmin-on-ubuntu
That way you will not have to open the MySQL service for external connections.
Hope that this helps. Regards, Bobby
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.