DEV Community

Krixnaas
Krixnaas

Posted on

2 1

[Resolved] WordPress - Error in DataBase Connection or Access denied for user@'localhost' ?

Situation:

Website migrated from one host to another using UpDraft. Admin able to login on WordPress dashboard.

Homepage/ FrontEnd shows, Connection Error! Access denied for user@localhost.

What I did?

changed wp-config.php
after hours of meddling around and changing multiple times username and password on wp-config.php which shows DataBase connection error.
Optimized and repair DataBase didn't help.

What Resolved?

*Disabled the all plugin and activate one by one. *

Hosting Provider: HostGator

Top comments (0)

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay