my.ini文件中clinet和mysqld中的写法不一样,要注意 [client] port=3306 default-character-set=utf8 [mysqld] port=3306 character_set_server=utf8 basedir=E:mysql5.6 datadir=E:mysql5.6data server_id=1