my.ini的内容格式:
[client]
port=3306
default-character-set=utf8
[mysqld]
port=3306
innodb_buffer_pool_size = 128M
character_set_server=utf8
server_id=488
basedir=D:/software/mysql
datadir=D:/software/mysql/data
max_allowed_packet = 10M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
ini格式可以用 ini-parser 来解析。