[MySQLd]
# set basedir to your installation path
basedir = c :/ MySQL
# set datadir to the location of your data directory
datadir = c :/mydata/data
# set character set
default-character-set = gbk
# set character collation
default-collation = gbk_chinese_ci
执行命令
c:\MySQL \bin\ > mysqld --install MySQL --defaults-file = C:\my.ini
mysqld --remove