Laravel – Issues trying to connect project to database
I’m trying to connect laravel to the database, but I’m having issues.
I’m getting these errors:
1 PDOException::(“SQLSTATE[HY000] [1045] Access denied for user ‘root’@’localhost’ (using password: NO)”)
C:UsersandreDropboxCollegeProjectRentablevendorlaravelframeworksrcIlluminateDatabaseConnectorsConnector.php : 682 PDO::__construct(“mysql:host=localhost;port=3308;dbname=rentable”, “root”, “”, [])
C:UsersandreDropboxCollegeProjectRentablevendorlaravelframeworksrcIlluminateDatabaseConnectorsConnector.php : 68
This is my .env file
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3308
DB_DATABASE=rentable
DB_USERNAME=root
DB_PASSWORD=
This is a screenshot of the database on the localhost:
from Laravel Questions and Answers https://laravelquestions.com/php/laravel-issues-trying-to-connect-project-to-database/
via Lzo Media
No comments:
Post a Comment