你在my.ini的两个default-character-set=utf8都已经设为utf8了吗?
[client]port=3306default-character-set=utf8[mysqld]
# The TCP/IP Port the MySQL Server will listen on
port=3306
#Path to installation directory. All paths are usually resolved relative to this.
basedir="C:/Program Files/MySQL/MySQL Server 4.1/"#Path to the database root
datadir="C:/Program Files/MySQL/MySQL Server 4.1/Data/"# The default character set that will be used when a new schema or table is
# created and no character set is defineddefault-character-set=utf8如果都设了,仍然不能变成你想要的结果,我想只能重装,在MySQl Server Instance Configuration Wizard
时候,装到要选择字符集,有三个单选按钮:第一个是默认的latin1;第二个是utf8;第三个是手工选择其他字符集,例如gbk,gb2312.如果你要建的数据库和表跟你mysql的默认字符集不一致,你可以设置一下.
DROP TABLE IF EXISTS `yinshi`.`cities`;
CREATE TABLE `cities` (
  `cityid` int(4) NOT NULL auto_increment,
  `CityName` varchar(10) NOT NULL default '',
  PRIMARY KEY  (`cityid`),
  UNIQUE KEY `cityid` (`cityid`),
  KEY `ID` (`cityid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

解决方案 »

  1.   

    我又重装了,第二个utf8和第三个也选utf8,两次重装都选了,还有my.ini里面也是utf8的,怎么show的时候就只有三个是utf8啊,郁闷啊,望高手指点迷津啊,顺便说一下我装的是XP操作系统
      

  2.   

    请问你们的mysql是什么版本的啊,可以给个下载地址吗,如果装了可以的话我也给分啊
      

  3.   

    mysql的下载地址一般都是从http://www.mysql.com里下载的.
      

  4.   

    我觉得可能是你connection的character是latin1造成的,你试下 set names 'utf8'
      

  5.   

    如果是gui界面,则直接设置utf-8就行.
    如果是命令界面是,可以在装的时候设定为utf-8就行了