标签:pre use bsp env pass class port username mode
Syntax error or access violation: 1055
sql_mode设置导致的问题, 修改 config/database.php
配置 strict => false
‘mysql‘ => [
‘driver‘ => ‘mysql‘,
‘host‘ => env(‘DB_HOST‘, ‘localhost‘),
‘port‘ => env(‘DB_PORT‘, ‘3306‘),
‘database‘ => env(‘DB_DATABASE‘, ‘forge‘),
‘username‘ => env(‘DB_USERNAME‘, ‘forge‘),
‘password‘ => env(‘DB_PASSWORD‘, ‘‘),
‘charset‘ => ‘utf8‘,
‘collation‘ => ‘utf8_unicode_ci‘,
‘prefix‘ => ‘‘,
‘strict‘ => false,
‘engine‘ => null,
],
标签:pre use bsp env pass class port username mode
原文地址:http://www.cnblogs.com/aiit/p/7144113.html