lundi 27 juin 2016

Laravel : SQLSTATE[42000] [1049] Unknown database

I'm starting to learn Laravel, but I'm encountering a big error for the database connection that I really don't understand...

I just want to display this route :

Route::get('test', function(){
$articles = App\Article::find(1);
    print_r($articles);
});

But it returns me that the database doesn't exist (which is wrong !)

Here is my .env file :

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=fabien
DB_USERNAME=root
DB_PASSWORD=null

Could someone help me please ? I'm desperate...



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

Aucun commentaire:

Enregistrer un commentaire