Reputation: 73
After I uploaded my Laravel project in Cpanel I have to configure my env file according to my database. I put database name, database user name and password also. but after I save in the database and refresh my browser. it says
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) (SQL: select * from
sliders
)
even though I have changed env file in server. but still showing me root@localhost
.
Can't figure it out how to solve this.
Upvotes: 0
Views: 1155
Reputation: 661
run php artisan config:clear
mostly because of .env being cached
Upvotes: 4