کد PHP:
# The MySQL server
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
interactive_timeout=40
wait_timeout=10
max_connections=500
max_user_connections=80
max_connect_errors=15
key_buffer_size = 256M
max_allowed_packet = 100M
table_open_cache = 256
sort_buffer_size = 4M
read_buffer_size = 4M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 16
query_cache_size= 128M
query_cache_limit=2M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8
tmp_table_size=16M
max_heap_table_size=32M
table_cache=128
log-bin=mysql-bin
server-id = 1
innodb_buffer_pool_size = 849M
[mysqldump]
quick
max_allowed_packet = 100M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[myisamchk]
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer = 16M
write_buffer = 16M
[mysqlhotcopy]
interactive-timeout
local-infile=0