Website
showing Database Connection Error
If
it is a wordpress website , it is a common issue
Check
the following to resolve the issue :
Login
to the cPanel >> go to File Manager >> Open the
public_html directory >> look for the wp-config.php and open it
using the code editor.
Save
the database, database username , password.
Go
to Mysql >> delete the database user (Note: Do not delete the
database , delete only the database user ).
Then
create the new database user again as specified in the
wp-config.php
, then reassign the database user to the database.
Or,
instaed of deleting the database user , you can click on the database
user and reassign the privileges and save it. Some times it works.
If
the above step did not work , check the database by clicking on the
>> check DB under the Mysql .If you find the corrupted database
tables , go to Mysql >> click on Repair DB. This will resolve
the error.
If
all of the above steps did not resolve the problem , contact the
hosting provider to resolve the issue. If may also be the reason that
server is down.
No comments:
Post a Comment