DROP TABLE IF EXISTS `imooc_user`; CREATE TABLE `imooc_user`( `id` int unsigned auto_increment key, `username` varchar(20) not null unique, `password` char(32) not null, `sex` enum("男","女","保密") not null default "保密", `face` varchar(50) not null, `regTime` int unsigned not null )charset='utf8';
2017-11-30
DROP TABLE IF EXISTS `imooc_user`;
CREATE TABLE `imooc_user`(
`id` int unsigned auto_increment key,
`username` varchar(20) not null unique,
`password` char(32) not null,
`sex` enum("男","女","保密") not null default "保密",
`face` varchar(50) not null,
`regTime` int unsigned not null
)charset='utf8';
在表末尾改utf8編碼
2017-11-30
謝謝,這樣就好了。
2017-11-22
改過也不行,我干脆將這個項目刪了,也沒什么用
謝謝你
2017-11-22
我解決了 數據庫可能不支持中文 你可以吧男女保密這些 改成英文 也可以將數據庫設置成中文
2017-11-22
我也有這個問題