Answer the question
In order to leave comments, you need to log in
Why are the .env settings not being applied?
Installed VDS with nginx, php-fpm, mysql, etc.
Zipped a folder with Laravel, uploaded via FTP, made unzip. I created a user and a database in mysql, I change the access to the database in .env to
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=admin_laravel
DB_USERNAME=admin_admin
I do php artisan migrate
I get [1045] Access denied for user 'root'@'localhost' ( using password: NO)
I do php artisan config:clear
I get the same thing, why?
Perhaps it was necessary to do config:clear on the local machine before copying to VDS?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question