Illuminate \ Database \ QueryException (1045) SQLSTATE[HY000] [1045] Access denied for user @’localhost’ (using password: YES) (SQL: select * from information_schema.tables where table_schema =

am getting Illuminate \ Database \ QueryException (1045) SQLSTATE[HY000] [1045] Access denied for user ‘dstories_lara19’@’localhost’ (using password: YES) (SQL: select * from information_schema.tables where table_schema = error in laravel
IlluminateDatabaseQueryException

1) open .env file from root directory and change database username and password

Add add database info and save

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=DATABASENAME
DB_USERNAME=USERNAME
DB_PASSWORD=PASSWORD

Leave a Reply

Your email address will not be published. Required fields are marked *