Closed
Description
I can run the Schema builder manually and everything works just fine. Example:
Schema::create('users', function($table)
{
$table->increments('id');
});
But when using the Artisan Migrate command, I get the following error:
[PDOException]
SQLSTATE[HY000] [2002] No such file or directory
[ErrorException]
Warning: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in /path/to/laravel/vendor/laravel/framework/sr
c/Illuminate/Database/Connectors/Connector.php line 47
Metadata
Metadata
Assignees
Labels
No labels