Lumen error when using artisan migrate
问题 I'm new to Lumen and when I try to use: php artisan migrate I get the following error. [PDOException] SQLSTATE[HY000] [2002] No such file or directory If I change 'localhost' to '127.0.0.1' I get this error: [PDOException] SQLSTATE[HY000] [2002] Connection refused If I use: php artisan migrate --database=Lumen I get: [InvalidArgumentException] Database [Lumen] not configured. Here is my .env file DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=Lumen DB_USERNAME=root DB_PASSWORD