N
N
Nikolino2018-06-01 23:44:58
Laravel
Nikolino, 2018-06-01 23:44:58

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

1 answer(s)
V
Victor, 2018-06-02
@v_decadence

> Perhaps it was necessary to make config:clear on the local machine, before copying to VDS?
Maybe. What prevents it from being done on VDS?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question