Can’t Connect to the Database
-
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 valueIf 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
The topic ‘Can’t Connect to the Database’ is closed to new replies.