jeudi 9 février 2017

Laravel 5 error SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)

Sometimes (about every 20 request) I get this error. But the next (next second), the same request, is fine. I dont know why it failed the first one. Sometimes i can get another error :

No supported encrypter found. The cipher and / or key length are invalid.

My .env database parameters are fine.

I have generated a key using php artisan key:generate

This key is in my .env file under a APP_KEY key

My config/app.php has a key 'key' => env('APP_KEY'), 'cipher' => 'AES-256-CBC'

does anyone have ANY idea how this can happen?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kNDHO5
via IFTTT

Aucun commentaire:

Enregistrer un commentaire