create table students(
id int not null primary key auto_increment,
name varchar(255) not null default '' comment '姓名',
age int unsigned not null default 0 comment '年齡',
id int not null primary key auto_increment,
name varchar(255) not null default '' comment '姓名',
age int unsigned not null default 0 comment '年齡',
2017-08-12
sex int unsigned not null default 10 comment '性別',
created_at int not null default 0 comment '新增時間',
updated_at int not null default 0 comment '修改時間'
)engine=innodb default charset = utf8 auto_increment = 1001 comment='學生表';
created_at int not null default 0 comment '新增時間',
updated_at int not null default 0 comment '修改時間'
)engine=innodb default charset = utf8 auto_increment = 1001 comment='學生表';
2017-08-12
Swift_TransportException in AuthHandler.php line 181:
Failed to authenticate on SMTP server with username "[email protected]" using 2 possible authenticators
Failed to authenticate on SMTP server with username "[email protected]" using 2 possible authenticators
2017-08-03
如果laravel數據遷移,執行遷移文件時錯誤,做如下處理:
1)php artisan optimiz
2)mysql5.7版本以上讓他支持utf8mb4編碼,
\config\database.php的配置項更改一下:
//'charset' => 'utf8mb4',
//'collation' => 'utf8mb4_unicode_ci',
改成:
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci'
1)php artisan optimiz
2)mysql5.7版本以上讓他支持utf8mb4編碼,
\config\database.php的配置項更改一下:
//'charset' => 'utf8mb4',
//'collation' => 'utf8mb4_unicode_ci',
改成:
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci'
2017-07-26