1 # The MySQL server configuration file.
2 # One can use all long options that the mysqld supports.
3 # Run mysqld with --help to get a whole list of available options
6 # This section must be the first!
8 datadir = /var/lib/mysql/db
9 pid-file = /var/lib/mysql/mysql.pid
11 socket = /var/lib/mysql/mysql.sock
14 # Don't use system locking
17 # Don't allow connections over the network by default
20 # Log connections and queries. It slows down MySQL so it's disabled by default
21 #log = /var/log/mysql/log
24 #log-update = /var/log/mysql/update
25 # Log some extra information to update log
28 # Log all isam changes
29 #log-isam = /var/log/mysql/isamlog
35 # Internal server variables
38 #set-variable = back_log=5
39 #set-variable = connect_timeout=5
40 #set-variable = delayed_insert_timeout=300
41 #set-variable = delayed_insert_limit=100
42 #set-variable = flush_time=0
43 #set-variable = join_buffer=131072
44 #set-variable = key_buffer=8M
45 #set-variable = long_query_time=10
46 #set-variable = max_allowed_packet=1M
47 #set-variable = max_connections=100
48 #set-variable = max_connect_errors=10
49 #set-variable = max_delayed_insert_threads=20
50 #set-variable = delayed_queue_size=1000
51 #set-variable = max_join_size=4294967295
52 #set-variable = max_sort_length=1024
53 #set-variable = max_write_lock_count=4294967295
54 #set-variable = net_buffer_length=16384
55 #set-variable = record_buffer=131072
56 #set-variable = sort_buffer=2M
57 #set-variable = table_cache=64
58 #set-variable = tmp_table_size=1M
59 #set-variable = thread_stack=65536
60 #set-variable = wait_timeout=28800
65 # MyISAM tables options
68 # Don't flush key buffers between writes for any MyISAM
69 #delay-key-write-for-all-tables
71 # Repair automatically on open if the table wasn't closed properly.
74 #set-variable = myisam_sort_buffer_size=4M
79 # InnoDB tables options (see MySQL manual)
82 #innodb_data_home_dir = /var/lib/mysql/innodb/data
83 #innodb_data_file_path = 00:10M;01:20M
84 #set-variable = innodb_mirrored_log_groups=1
85 #innodb_log_group_home_dir = /var/lib/mysql/innodb/log
86 #set-variable = innodb_log_files_in_group=3
87 #set-variable = innodb_log_file_size=30M
88 #set-variable = innodb_log_buffer_size=8M
90 #innodb_flush_log_at_trx_commit=1
91 #innodb_log_arch_dir = /var/lib/mysql/innodb/log
93 #set-variable = innodb_buffer_pool_size=80M
94 #set-variable = innodb_additional_mem_pool_size=10M
95 #set-variable = innodb_file_io_threads=4
96 #set-variable = innodb_lock_wait_timeout=50
100 # Berkeley DB tables options
102 # Don't use berkeley db (saves a lot of memory)
105 #bdb-home = /var/lib/mysql/db
106 #bdb-log-dir = /var/lib/mysql/bdb/log
107 #bdb-tmpdir = /var/lib/mysql/bdb/tmp
110 #bdb-lock-detect = DEFAULT
112 # Don't synchronously flush logs.
115 # Don't start Berkeley DB in recover mode.
118 # Start Berkeley DB in multi-process mode (Don't use `DB_PRIVATE'
119 # when initializing Berkeley DB
122 #set-variable = bdb_max_lock=1000
125 # used for logs rotation
127 user = mysql_logrotate