Nereziel / cs2-WeaponPaints

GNU General Public License v3.0
192 stars 51 forks source link

Access Denied for User (Website) #295

Open smpcheathunt opened 2 weeks ago

smpcheathunt commented 2 weeks ago

PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) in /home/awmdplem/domains/cheathunt.x10.mx/public_html/class/database.php:8 Stack trace:

0 /home/awmdplem/domains/cheathunt.x10.mx/public_html/class/database.php(8): PDO->__construct()

1 /home/awmdplem/domains/cheathunt.x10.mx/public_html/index.php(7): DataBase->__construct()

2 {main}

this is the log

L1teD commented 2 weeks ago

Check you database credentials as well as MySQL configuration

smpcheathunt commented 2 weeks ago

I'm pretty sure it's the same? Since it is a dedicated server I put the credentials host as localhost and username as root. I must be stupid.

L1teD commented 2 weeks ago

As i see you have no password for mysql set This could be the issue (but I'm not sure, since i don't remember how pdo in php works) Try to set a password for root and see if it works

smpcheathunt commented 2 weeks ago

I did, but it just changed to (using password: YES)