• Resolved sqlt

    (@sqlt)


    I have ~10 WP sites, and I recently moved them to a new server. I created new databases and credentials for the site. I moved over my files, updated the wp-config.php page to include the new db name/creds, and I’m getting a db connection error when I go to the site.

    I checked the logs, and I’m getting the following error:
    Access denied for user 'username'@'localhost' (using password: YES)

    The weird thing is that username isn’t a user for this site on the new or old server. It is however a user for a different site on the old server.

    Is there any way you can think of that these old creds for a different site would be cached and trying to override the db creds in my wp-config.php file?

    I’m running through cloudflare, and I’ve already purged the cache there.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    No, the DB credentials are not cached. Reverify that ‘user’ is the right user ID for the database and that you edited the correct wp-config.php files. 🙂

    Thread Starter sqlt

    (@sqlt)

    Thanks, @sterndata.

    I just double checked and the info I entered was correct. It’s in the right folder…

    However, there’s something else screwy going on that I’ll have to look into. I renamed the wp-config file, and I’m still getting the same error.

    Thanks for the help.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Is Cloudflare pointing at the right set of servers? Hmmm…. if you get the error, then probably yes, but are the IP assignments from CF to your sites correct? Might be worth disabling CF while solving this.

    Thread Starter sqlt

    (@sqlt)

    This is all on a subdomain that’s pointed in the right direction. I might bypass CF and see. I’ll be working on this later tonight.

    I appreciate your help!

    Thread Starter sqlt

    (@sqlt)

    Alright, long story short, a redirect found its way into the domain at some level. Not sure what happened (and honestly, couldn’t find it).

    I deleted all the files out of the domain’s root directory, uploaded the files again, and presto … it all worked like a charm.

    Not sure where the wires got crossed, but just wanted to close the loop on this.

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

The topic ‘New Server – Cached DB Creds?’ is closed to new replies.