How I solved this problem.
CPANEL
Go to MySQL Account Maintenance
Check if the database is working.
I eliminated ALL the users.
I add a new user and password and give ALL the privileges to this new user.
The new user should be something like “database_newuser”
The password whatever you created “xfkdjkdsei”
Use this new user and the database will conect without problem.