A4family
A4family

Reputation: 73

.env file not updating in server?

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

Answers (1)

Ghiffari Assamar
Ghiffari Assamar

Reputation: 661

run php artisan config:clear

mostly because of .env being cached

Upvotes: 4

Related Questions