mysql5.1之前版本,在解决mysql插入的中文为乱码: default-character-set=utf8 mysql5.1版本之后,这样写会出现1067,正确的写法为: character-set-server=utf8