By jakelunniss
I’m importing my database to a discourse instance on a local environment, and need to connect to my wp database remotely.
host: "REMOTE_HOST_NAME",
username: "DB_USERNAME",
password: "MY_SECURE_PASSWORD",
database: "DB_NAME",
)```
I know the un, pw etc, but I can't figure out what the remote host name would be.
Any ideas?
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!
Hello there,
Database Host – The hostname of your Database Server. A port number, Unix socket file path or pipe may be needed as well.
If the database you want to use is hosted on the same server/droplet you can put the following line in the wp-config.php
- host: "localhost",
If the database is hosted externally you can enter the IP of the remote server, followed by the port of the MySQL instance.
Hope that this helps! Regards, Alex
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.