系统是centos,内存只有512M,刚安装好一直不能启动服务,后来修改为 innodb_buffer_pool_size = 10M,便可以启动成功了,但是还是会占400M多,这样本人连启动其他软件的内存都没有了,而且机器会比较慢,下面是本人my.cnf的配置:
mysql版本是MySQL-server-5.6.16-1.rhel5.x86_64.rpm
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
[mysqld]
#Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
innodb_buffer_pool_size = 10M
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
# These are commonly set, remove the # and set as required.
# basedir = …..
# datadir = …..
# port = …..
# server_id &