• I have setup PHP on my home machine and installed a local copy of MySQL.

    I then change the wp-config.php file to have the correct details and yet I am still getting the standard could not connect to the database error.

    Here is what I have

    define(‘DB_NAME’, ‘wordpress’); // The name of the database
    define(‘DB_USER’, ‘lazy’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘*****’); // …and password
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

    If I try and connect using any of the mySQL interfaces to the database it connects without any problems. I have tried creating a new user but that made no difference…

    Does anyone have any ideas?

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Can’t Connect to the Database’ is closed to new replies.