Forums

Can't Connect to the Database (2 posts)

  1. GavinMannion
    Member
    Posted 5 years ago #

    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

  2. moshu
    Member
    Posted 5 years ago #

    It is difficult to give advice for a local install. However, I'd suggest installing XAMPP - it has everything you need for a local install.
    There is even a nice tutorial how to do it:
    http://www.tamba2.org.uk/wordpress/xampp/

    Other than that you are on your own: we do not support server questions.

Topic Closed

This topic has been closed to new replies.

About this Topic