kangular
kangular

Reputation: 263

Laravel SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: select * from `table_companies`)

I have my .env file configured with the remote DB credentials and its working on my local computer.

When I deploy the app to our dev server in the same page returns

SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: select * from `table_companies`)

Is there a command that I'm missing? Why if my .env us using our cloudways database credentials is saying homestead'@'localhost?

Upvotes: 2

Views: 3111

Answers (1)

Alexey Mezenin
Alexey Mezenin

Reputation: 163788

The production server has its own DB credentials that you should put in server's own .env file.

Upvotes: 1

Related Questions