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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay