Support » Installing WordPress » Connecting to External Database

  • I’ve searched on this for the last hour and haven’t found anything useful. I’m getting the “Error establishing a database connection” message.

    I want to connect to my external database. I’m running wordpress locally. So I have changed the DB_HOST to my actuall mysql host.

    I had previously setup everything locally including mysql. Then I was pretty happy with everything and wanted to try developing locally but connecting to my dev mysql account.

    So I’m using something like this

    define(‘DB_NAME’, ‘mydbname’);
    define(‘DB_USER’, ‘myuser’);
    define(‘DB_PASSWORD’, ‘mypwd’);
    define(‘DB_HOST’, ‘’);

    Where ll the details are as they should be. I have used the setttings in ssh to connect to mysql so I know they’re right.

    Am I missing something? I’m sure this can be done..

    My mysql account is with Dreamhost if that matters…


Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Connecting to External Database’ is closed to new replies.