在用myeclipse开发bbs项目中由于害怕出现mysql的乱码问题,在my.ini中修改了一些代码:
(1)[mysql]
default-character-set=latin1代码块中改成了
[mysql]
default-character-set=GBK
(2)[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 5.1/"
#Path to the database root
datadir="C:/ProgramData/MySQL/MySQL Server 5.1/Data/"
The default character set that will be used when a new schema or table is
created and no character set is defined
default-character-set=latin1代码块中改成了
[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 5.1/"
#Path to the database root
datadir="C:/ProgramData/MySQL/MySQL Server 5.1/Data/"
The default character set that will be used when a new schema or table is
created and no character set is defined
default-character-set=utf8
然后打开命令行窗口MySQL Command Line Client输入密码后出现错误,窗口一闪就消失了,
然后启动电脑服务,启动mysql,便出现[color=red][b]错误1067:进程意外终止[/b][/color]
[img]http://dl.iteye.com/upload/attachment/228807/0286bd30-65fc-3488-9eee-017376e7121c.jpg[/img]
然后重装了几次mysql,问题依然不能解决。百度也找了很久,试了很多方法,都行不通。
希望各位大侠能帮助小弟脱离苦海。。。
感激不尽!!! :cry: