代码如下: 解压mysql到d:\mysql,编辑my.ini [mysqld] port=3306 basedir=”D:/mysql/” datadir=”D:/mysql/Data/” tmpdir=”d:/mysql/tmp/” default-character-set=utf8 default-storage-engine=MYISAM skip-bdb skip-innodb skip-locking key_buffer=16M max_allowed_packet=1M table_cache=128 thread_cache=8 join_buffer_size=512K