Forums

[resolved] mySQL database on a different server, can't connect to it (3 posts)

  1. Washerhelp
    Member
    Posted 5 years ago #

    I've uploaded Worpress to my domain, but the mySQL database I have set up isn't in the same place, so the default setting "localhost" doesn't work. I've tried changing the location of the database as per where my hosting comapny says it is (I can connect to the database using phpadmin OK with the following url http://mysql.ukfast.co.uk)

    define('DB_HOST', 'http://mysql.ukfast.co.uk')

    But I still get the error -

    This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at http://mysql.ukfast.co.uk. This could mean your host's database server is down.

  2. Samuel B
    moderator
    Posted 5 years ago #

    Like this:

    define('DB_HOST', 'mysql.ukfast.co.uk')

  3. Washerhelp
    Member
    Posted 5 years ago #

    Excellent - up and running in less than a minute. Thanks very much.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.