首先把my-*.ini中的任何一个名字改成my.ini后修改
在[mysql]下面添加:
basedir=D:/mysql-5.1.25
datadir=D:/mysql-5.1.25/data
port = 3306
socket = /tmp/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
添加编码:
default-character-set=utf8
default-storage-engine=innodb