I created a project with composer flawlessly BUT artisan is giving me a Error!
I have created i MySql database "Movie" and i want to create a migration with artisan, this is what i do:
This is my database.php file:
'default' => 'mysql',
'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost'), 'database' => env('DB_DATABASE', 'Movies'), 'username' => env('DB_USERNAME', 'root'), 'password' => env('DB_PASSWORD', ''), 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false, ]
php artisan make:migration create_movies_table --create="movies"
php artisan migrate
the error:
[PDOException]
SQLSTATE[HY000] [2002] No such file or directory
thank you in advance!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community