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 "18561260085@163.com" using 2 possible authenticators
Failed to authenticate on SMTP server with username "18561260085@163.com" 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