Laravel Migration - Says unknown database, but it is created
问题 when I use php artisan migrate , i get the error SQLSTATE[42000] [1049] Unknown database 'databaseName' . But the database DOES exists! I even tried going back into terminal, logged into mysql and created the database again, and it said that database already exists! Why is this giving me this error? 回答1: In your app/config/database.php file change the default value from databaseName to a real database name that you are trying to use in your application, something like this (for mysql driver):