douhuan1908 2014-06-11 14:46
浏览 6
已采纳

如何在laravel中创建init db?

How I can create the initial database on migrations of laravel?

For when I do command

php artisan migrate

returns me the following message

[PDOException] SQLSTATE [HY000] [1049] Unknown database

Thanks

  • 写回答

2条回答 默认 最新

  • duanmao9918 2014-06-11 14:49
    关注

    Artisan does not create the database, only database tables. You're going to need to create the DB yourself first (in whatever DB tools you have, not Laravel) then run run your migrations.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?