]> git.pld-linux.org Git - packages/mysql.git/blame - mysqld.conf
- don't override, just append
[packages/mysql.git] / mysqld.conf
CommitLineData
87a1c582
ER
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
4; $Id$
2ad2f3ce 5
87a1c582 6; This section must be the first!
7ce39a59 7[mysqld]
c6a5a2ea
ER
8datadir = /var/lib/mysql/mysqldb/db
9pid-file = /var/lib/mysql/mysqldb/mysql.pid
2ad2f3ce 10port = 3306
3127d72f 11socket = /var/lib/mysql/mysql.sock
2ad2f3ce 12user = mysql
13
87a1c582
ER
14;character-set-server=latin2
15;collation-server=latin2_general_ci
a9eca139 16;skip-character-set-client-handshake
9051d690 17
87a1c582
ER
18; Use passwords compatible with old 4.0 mysqld
19;old-passwords
df187c4e 20
87a1c582
ER
21; Don't use system locking
22;skip-locking
2ad2f3ce 23
7ce39a59 24; Don't allow connections over the network by default
2ad2f3ce 25skip-networking
26
87a1c582
ER
27; Emergency option. Use only if you really need this.
28;skip-grant-tables
29
30; Log connections and queries. It slows down MySQL so it's disabled by default
31;log = /var/log/mysql/log
32
7ce39a59 33; Log all updates.
87a1c582
ER
34;log-update = /var/log/mysql/update
35; Log some extra information to update log
36;log-long-format
37
38; Log all isam changes
39;log-isam = /var/log/mysql/isamlog
40
41; Language
42;language = polish
43
44;
45; Internal server variables
46;
47
48;set-variable = back_log=5
49;set-variable = connect_timeout=5
50;set-variable = delayed_insert_timeout=300
51;set-variable = delayed_insert_limit=100
52;set-variable = flush_time=0
53;set-variable = join_buffer_size=131072
54;set-variable = key_buffer_size=8M
55;set-variable = long_query_time=10
56;set-variable = max_allowed_packet=1M
57;set-variable = max_connections=100
58;set-variable = max_user_connections=0
59;set-variable = max_connect_errors=10
60;set-variable = max_delayed_insert_threads=20
61;set-variable = delayed_queue_size=1000
62;set-variable = max_join_size=4294967295
63;set-variable = max_sort_length=1024
64;set-variable = max_write_lock_count=4294967295
65;set-variable = net_buffer_length=16384
66;set-variable = record_buffer=131072
67;set-variable = sort_buffer_size=2M
68;set-variable = table_cache=64
69;set-variable = tmp_table_size=1M
70;set-variable = thread_stack=65536
71;set-variable = wait_timeout=28800
28635a24
ER
72;set-variable = query_cache_size=8M
73;set-variable = query_cache_limit=1M
87a1c582
ER
74
75
76
77;
78; MyISAM tables options
79;
80
81; Don't flush key buffers between writes for any MyISAM
82;delay-key-write-for-all-tables
83
84; Repair automatically on open if the table wasn't closed properly.
b0f33e42 85myisam-recover
7ce39a59 86;
87a1c582 87;set-variable = myisam_sort_buffer_size=4M
b0f33e42 88
89
90
87a1c582 91;
7ce39a59 92; InnoDB tables options (see MySQL manual)
87a1c582 93;
7ce39a59 94;skip-innodb
b0f33e42 95
87a1c582
ER
96;innodb_data_home_dir = /var/lib/mysql/innodb/data
97;innodb_data_file_path = 00:10M;01:20M
98;set-variable = innodb_mirrored_log_groups=1
99;innodb_log_group_home_dir = /var/lib/mysql/innodb/log
100;set-variable = innodb_log_files_in_group=3
101;set-variable = innodb_log_file_size=30M
102;set-variable = innodb_log_buffer_size=8M
b0f33e42 103
87a1c582
ER
104;innodb_flush_log_at_trx_commit=1
105;innodb_log_arch_dir = /var/lib/mysql/innodb/log
106;innodb_log_archive=0
107;set-variable = innodb_buffer_pool_size=80M
108;set-variable = innodb_additional_mem_pool_size=10M
109;set-variable = innodb_file_io_threads=4
110;set-variable = innodb_lock_wait_timeout=50
b0f33e42 111
112
87a1c582
ER
113;
114; Berkeley DB tables options
115;
116; Don't use berkeley db (saves a lot of memory)
117;skip-bdb
b0f33e42 118
7ce39a59 119;bdb-home = /var/lib/mysql/db
87a1c582
ER
120;bdb-log-dir = /var/lib/mysql/bdb/log
121;bdb-tmpdir = /var/lib/mysql/bdb/tmp
b0f33e42 122
123
87a1c582 124;bdb-lock-detect = DEFAULT
b0f33e42 125
87a1c582 126; Don't synchronously flush logs.
7ce39a59 127;bdb-no-sync
b0f33e42 128
87a1c582
ER
129; Don't start Berkeley DB in recover mode.
130;bdb-no-recover
b0f33e42 131
7ce39a59 132; Start Berkeley DB in multi-process mode (Don't use `DB_PRIVATE'
87a1c582
ER
133; when initializing Berkeley DB
134;bdb-shared-data
b0f33e42 135
7ce39a59 136;set-variable = bdb_max_lock=1000
b0f33e42 137
138
87a1c582 139; used for logs rotation
2ad2f3ce 140[mysqladmin]
7ce39a59
ER
141user = mysql_logrotate
142password =
87a1c582
ER
143
144; vim=syn=dosini
This page took 0.074958 seconds and 4 git commands to generate.