Laravel 5 app keeps using old database connection -
pdoexceptionvendor/laravel/framework/src/illuminate/database/connectors/connector.php:47 sqlstate[hy000] [1045] access denied user 'forge'@'localhost' (using password: yes)
i have updated .env file correct credentials (its not localhost anymore, ip address) keep getting error message. have run php artisan config:clear
too. how can force production app use new credentials in .env file?
my config/database.php standard:
'connections' => [ 'mysql' => [ 'driver' => 'mysql', 'host' => env('db_host', 'localhost'), 'database' => env('db_database'), 'username' => env('db_username'), 'password' => env('db_password'), 'port' => env('db_port', '3306'), 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false, ], ],
good lord, lost mind trying fix this. there no problem db connection on web requests, still getting connection errors in bug reporting. seems issue queue running holding old config values.
ps aux | grep php
find queue:work
process , kill it, start again automatically read in new config values.
Comments
Post a Comment