Quantcast
Channel: Topic Tag: Database Error | WordPress.org
Viewing all articles
Browse latest Browse all 631

“cannot connect to database” error (fixed)

$
0
0

i have a lot of images on my site, and was moving a bunch around, and deleting the original folders.
the plugin worked like a charm until i tried deleting a folder with another (empty) directory inside it.
up came a bunch of blank error messages, then a javascript error (sorry, did not record it) before the page came up with “cannot connect to database”.

checking the database through my hosting provider gave me a server error (500), whilst my other databases opened up fine.

I was able to fix it by creating a new database user and password via phpmyadmin & updating the credentials in wp-config.php.

(just changing the password for the old user allowed me to open the database in phpmyadmin, but going to the website, it took me to the wordpress installation screen. i quickly closed that and created the new user – panic, who me? :p )

scary, but ultimately no harm done. i shall run a backup before doing any more work though 😉


Viewing all articles
Browse latest Browse all 631

Trending Articles