0

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.

1

1 Answer 1

4

run php artisan config:clear

mostly because of .env being cached

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.