Question

What is my wordpress database remote host?

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?

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

  1. 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