• I created a databse and a user, and assigned the user to the database. I’ve checked several times to make sure the config file has the right info.

    I actually ran the database test script found here using the same info (including the vanilla “localhost”) in my config file and.. it connects fine.

    I even have another MySQL db running on the same server handling a forum — this is working fine.

    I’m stuck. What can I try next?

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you are sure everything is correct, then try changing the database user’s password and updating wp-config.php with that information.

    Yesterday someone had a problem where they were allowed to do phpMyAdmin on their database but when they looked further, the user specified in wp-config.php had mysteriously dissappeared.

    Thread Starter iconmaster

    (@iconmaster)

    I figured it out. In the config file, I was customizing the first value instead of the second. So in

    define(‘DB_NAME’, ‘wordpress’);

    I was changing ‘DB_NAME’ and leaving ‘wordpress’ alone. Whupz.

    Thanks for looking.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Database connection error — but I’ve checked everything’ is closed to new replies.