Cannot connect to MySQL database

Status
Not open for further replies.

abelonger

New Member
Messages
8
Reaction score
0
Points
0
I can't seem to connect to my MySQL database. I have made no changes to the database settings in a couple of months, so I am curious if there is an outage of some sort.
 

Gouri

Community Paragon
Community Support
Messages
4,565
Reaction score
245
Points
63
I can't seem to connect to my MySQL database. I have made no changes to the database settings in a couple of months, so I am curious if there is an outage of some sort.

First of all confirm that you are using the localhost as your DBHost in your wp-config.php

Then

goto mysql databases in your Cpanel and

drop user(Don't delete user or database) then
re assign the user to database by giving all privileges

Then check the site.
 

abelonger

New Member
Messages
8
Reaction score
0
Points
0
Yup, always have been using localhost. And your drop/readd of the user to the DB seemed to do the trick. I will have to remember that - thanks!
 
Status
Not open for further replies.
Top