PHP職人の移行を実行します。インストール
报错:
SQLSTATE[42000]: Syntax error or access violation: 1231 Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CRE****ATE_USER' (S
QL: create table `migrations` (`id` int unsigned not null auto_increment primary key, `migration` varchar(255) not null, `batch`
int not null) default character set utf8mb4 collate utf8mb4_unicode_ci)
解決策は以下のとおりです。
laravel54 \ CONFIG \ database.phpで
、厳密な値は、コードの虚偽を変更するように変更されています。
再度実行結果:
#PHP職人[試験laravel54 @ルート]マイグレーション:インストール
移行テーブルを作成しました。
[ルートテストlaravel54 @]#