尝试在laravel中迁移表时无法找到迁移表

时间:2018-04-17 08:40:15

标签: laravel migration

我是laravel的新手,我试图运行php artisan migrate,但我得到了这个错误

Illuminate\Database\QueryException  : SQLSTATE[42000]: Syntax error or access  violation: 1064 You have an error in your SQL syntax; check the manual that cor responds to your MariaDB server version for the right syntax to use near '-DYNAM IC' at line 1 (SQL: create table `migrations` (`id` int unsigned not null auto_i ncrement primary key, `migration` varchar(191) not null, `batch` int not null) d efault character set utf8mb4 collate utf8mb4_unicode_ci engine = InnoDB ROW_FORM AT-DYNAMIC)

还提到我的数据库是空的并且没有表格,我曾尝试运行php artisan migrate:rollbackreset,但控制台告诉我没有找到的迁移

1 个答案:

答案 0 :(得分:0)

运行php artisan migrate:安装它将解决问题