DeN elLoco

Registered
Sep 10, 2022
1
0
0
Ukraine
cPanel Access Level
Website Owner
Hello! I need help.
I use cPanel for hosting (on GoDaddy) for my website. Last Tursday I made some changes in php-files (nothing related to connection to DB) and upload them on server. Friday morning everything was still OK. But when I wanted to make some new changes on Saturday, I got this error:

Connect Error MySQL.
Access denied for user 'evbkulxan0cv'@'localhost' (using password: YES)

When I try to sign in on cPanel using usual login and password, everything is fine. But when I use the same login and password on phpMyAdmin, I get this error:

mysqli_connect(): (28000/1045): Access denied for user 'cpses_evi5w8e6l5'@'localhost' (using password: YES)
Undefined index: auth_type

This website has already worked for two years and it's first time I have this issue.
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,139
2,405
363
cPanel Access Level
Root Administrator
Hey there! If you have root access to the machine, the first thing I would check would be to ensure the MySQL connection string still works. I like to check that on the command line by running:

Code:
mysql -u username -p
and then enter the MySQL database user's password that is stored in the wp-config file. If that works, I would expect the connection to work well. If not, you can recreate the MySQL user and database connection in cPanel >> MySQL Databases.

If you don't have root access or SSH access to the machine, you will need to speak with your hosting provider or datacenter to have them help you troubleshoot this connection problem.
 

timkah

Member
Sep 28, 2022
15
2
3
United Kingdom
cPanel Access Level
Root Administrator
Normally this error comes up due to a DB access problem, make sure you enter the correct server address, username, and password in your PHP connection file, and also make sure your DB server firewall is not blocking the App server.