求大神指点,PHP artisan migrate 执行报错:check the manual tha t corresponds to your MySQL server version for the right syntax to use near 'layouts character set utf8mb4 collate utf8mb4_unicode_ci'?
php artisan migrate执行错误结果为:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual tha
t corresponds to your MySQL server version for the right syntax to use near 'layouts character set utf8mb4 collate
utf8mb4_unicode_ci' at line 1 (SQL: create table migrations
(id
int unsigned not null auto_increment primary
key, migration
varchar(191) not null, batch
int not null) layouts character set utf8mb4 collate utf8mb4_unicod
e_ci)
In Connection.php line 452:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual tha
t corresponds to your MySQL server version for the right syntax to use near 'layouts character set utf8 collate ut
f8_unicode_ci' at line 1;
这里的sql里为什么会多一个layouts?
推荐文章: