Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [mysqld]
- basedir=/var/lib/mysql
- datadir=/var/lib/mysql
- #log=/var/log/mysqld/log-total.log
- socket=/var/lib/mysql/mysql.sock
- user=mysql
- # Default to using old password format for compatibility with mysql 3.x
- # clients (those using the mysqlclient10 compatibility package).
- old_passwords=1
- slow_query_log = 1
- slow_query_log_file = /var/lib/mysql/mysql-slow.log
- long_query_time = 5
- # Memory usage
- skip-external-locking
- max_connections = 512
- max_user_connections = 512
- max_connect_errors = 999999
- key_buffer = 384M
- max_allowed_packet = 64M
- table_cache = 1536
- table_definition_cache = 1536
- sort_buffer_size = 1M
- read_buffer_size = 1M
- read_rnd_buffer_size = 4M
- myisam_sort_buffer_size = 64M
- thread_cache_size = 256
- query_cache_type = 1
- query_cache_limit = 4M
- query_cache_size = 64M
- tmp_table_size = 384M
- max_heap_table_size = 384M
- join_buffer_size = 1M
- low_priority_updates=1
- # CPU x 2 solitamente
- thread_concurrency = 4
- # Disable Federated by default
- # skip-federated
- # Valore per Slow Query può arrivare anche a 1800
- wait_timeout=60
- [mysqld_safe]
- log-error=/var/log/mysqld/error.log
- pid-file=/var/run/mysqld/mysqld.pid
- log=/var/log/mysqld-total.log
- [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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement