-
Notifications
You must be signed in to change notification settings - Fork 599
Description
Hello, I'm a beginner programmer trying to set up the MySQL database with the php server, but I'm having trouble accessing the database. Whenever I go to http://localhost:8080/gpstracker/php/updatelocation.php
I get this error and I'm not sure how to debug this.
Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user 'gpstracker_user'@'localhost' (using password: YES) in /opt/lampp/htdocs/gpstracker/php/dbconnect.php:24 Stack trace: #0 /opt/lampp/htdocs/gpstracker/php/dbconnect.php(24): PDO->__construct('mysql:host=loca...', 'gpstracker_user', 'gpstracker') #1 /opt/lampp/htdocs/gpstracker/php/updatelocation.php(2): include('/opt/lampp/htdo...') #2 {main} thrown in /opt/lampp/htdocs/gpstracker/php/dbconnect.php on line 24