MySQL -- access denied for... any user.

Status
Not open for further replies.

karrx10h

Member
Messages
73
Reaction score
8
Points
8
Greetings.

I've just discovered that my scripts are unable to connect to their databases because all MySQL users are getting an "access denied" error; even new users; not only the already created ones. The only one who can connect is the cPanel MySQL user (I still can use the phpMyAdmin from the cPanel).

I think this could be broken since Oct. 23 (more or less).

What could it be happening?

Thanks for your attention.
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi,

Please make sure the MySQL hostname you are using is exactly localhost (with nothing added to the start or end). If your host is definitely set to this, please can you provide me with a link to the broken page?
 

karrx10h

Member
Messages
73
Reaction score
8
Points
8
Phew. Thanks a lot.

I just had to replace 'localhost.karr.x10host.com' by 'localhost':

//define('SERVIDOR', 'localhost.karr.x10host.com');
define('SERVIDOR', 'localhost');

It had always worked the way it was, but now... I'm glad it's been fixed so quickly, because I hadn't notice it till now.

Thank you so much.
 
Status
Not open for further replies.
Top