my.cnf:
Код: Выделить всё
[client]
default-character-set=cp1251
port = 3306
socket = /tmp/mysql.sock
[mysqld]
character-set-server=cp1251
collation-server=cp1251_general_ci
init-connect="SET NAMES cp1251"
port = 3306
socket = /tmp/mysql.sock
skip-external-locking
key_buffer = 256M
max_allowed_packet = 1M
table_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 70
query_cache_size= 32M
thread_concurrency = 8
log-bin=mysql-bin
log-warnings=2
server-id = 1
max_connections=400
innodb_data_home_dir = /var/db/mysql/innodb
innodb_data_file_path = ibdata1:10M:autoextend:max:1100M
innodb_log_group_home_dir = /var/db/mysql/innodb
innodb_buffer_pool_size = 1024M
innodb_additional_mem_pool_size = 20M
innodb_log_file_size = 64M
innodb_flush_log_at_trx_commit = 2
innodb_file_per_table = 1
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
Код: Выделить всё
| Threads_cached | 43 |
| Threads_connected | 50 |
| Threads_created | 303 |
| Threads_running | 1 |