# Intended for MySQL 3.23.x# Place this under the heading [mysqld] in the file /etc/my.cnf# added due to a warning in /var/log/mysqld.log when starting mysqld, default was 1Mset-variable = innodb_additional_mem_pool_size=2M# larger than *.MYI, calculate with shell command:# X=0; for f in `du -k /var/lib/mysql/*/*.MYI | awk '{print $1}' | sed s/k//`; do X=`expr $X + $f`; echo $X kb; done;# i chose 3x the size to allow for expansion# http://www.databasejournal.com/features/mysql/article.php/3367871# this was way too low (8MB) and was the major cause of my slowdowns!# set to a maximum of 25% total RAM availableset-variable = key_buffer_size=128M# 1k per 1M ram# http://www.databasejournal.com/features/mysql/article.php/3367871# named read_rnd_buffer_size in MySQL 4# default was way too lowset-variable = record_rnd_buffer=512k# seems to not matter if it's a bit higher and i needed it# http://www.databasejournal.com/features/mysql/article.php/10897_1402311_3# default was 64set-variable = table_cache=128# default was 50# http://www.databasejournal.com/features/mysql/article.php/10897_1402311_3set-variable = back_log=300# default was 2MB!# http://www.databasejournal.com/features/mysql/article.php/10897_1402311_4set-variable = sort_buffer=16M
# 1k per 1M ram# http://www.databasejournal.com/features/mysql/article.php/3367871# named read_rnd_buffer_size in MySQL 4# default was way too lowset-variable = record_rnd_buffer=512k