updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / mysql51 / my.cnf
blobba8966d1ddd3e42c02310c5087ced7e8a7d5c5d3
1 # mysql config file for medium systems.
3 # This is for a system with little memory (32M - 64M) where MySQL plays
4 # a important part and systems up to 128M where MySQL is used together with
5 # other programs (like a web server)
7 # One can in this file use all long options that the program supports.
8 # If you want to know which options a program support, run the program
9 # with --help option.
11 # The following options will be passed to all MySQL clients
12 [client]
13 #password       = your_password
14 port            = 3306
15 socket          = /var/run/mysqld/mysqld.sock
17 # Here follows entries for some specific programs
19 # The MySQL server
20 [mysqld]
21 port            = 3306
22 socket          = /var/run/mysqld/mysqld.sock
23 datadir         = /var/lib/mysql
24 skip-external-locking
25 key_buffer = 16M
26 max_allowed_packet = 1M
27 table_cache = 64
28 sort_buffer_size = 512K
29 net_buffer_length = 16K
30 myisam_sort_buffer_size = 8M
32 # Don't listen on a TCP/IP port at all. This can be a security enhancement,
33 # if all processes that need to connect to mysqld run on the same host.
34 # All interaction with mysqld must be made via Unix sockets or named pipes.
35 # Note that using this option without enabling named pipes on Windows
36 # (via the "enable-named-pipe" option) will render mysqld useless!
37
38 skip-networking
40 # Replication Master Server (default)
41 # binary logging is required for replication
42 #log-bin
44 # required unique id between 1 and 2^32 - 1
45 # defaults to 1 if master-host is not set
46 # but will not function as a master if omitted
47 server-id       = 1
49 # Replication Slave (comment out master section to use this)
51 # To configure this host as a replication slave, you can choose between
52 # two methods :
54 # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
55 #    the syntax is:
57 #    CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
58 #    MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
60 #    where you replace <host>, <user>, <password> by quoted strings and
61 #    <port> by the master's port number (3306 by default).
63 #    Example:
65 #    CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
66 #    MASTER_USER='joe', MASTER_PASSWORD='secret';
68 # OR
70 # 2) Set the variables below. However, in case you choose this method, then
71 #    start replication for the first time (even unsuccessfully, for example
72 #    if you mistyped the password in master-password and the slave fails to
73 #    connect), the slave will create a master.info file, and any later
74 #    change in this file to the variables' values below will be ignored and
75 #    overridden by the content of the master.info file, unless you shutdown
76 #    the slave server, delete master.info and restart the slaver server.
77 #    For that reason, you may want to leave the lines below untouched
78 #    (commented) and instead use CHANGE MASTER TO (see above)
80 # required unique id between 2 and 2^32 - 1
81 # (and different from the master)
82 # defaults to 2 if master-host is set
83 # but will not function as a slave if omitted
84 #server-id       = 2
86 # The replication master for this slave - required
87 #master-host     =   <hostname>
89 # The username the slave will use for authentication when connecting
90 # to the master - required
91 #master-user     =   <username>
93 # The password the slave will authenticate with when connecting to
94 # the master - required
95 #master-password =   <password>
97 # The port the master is listening on.
98 # optional - defaults to 3306
99 #master-port     =  <port>
101 # binary logging - not required for slaves, but recommended
102 #log-bin
104 # Point the following paths to different dedicated disks
105 #tmpdir         = /tmp/         
106 #log-update     = /path-to-dedicated-directory/hostname
108 # Uncomment the following if you are using BDB tables
109 #bdb_cache_size = 4M
110 #bdb_max_lock = 10000
112 # Uncomment the following if you are using InnoDB tables
113 #innodb_data_home_dir = /var/lib/mysql
114 #innodb_data_file_path = ibdata1:10M:autoextend
115 #innodb_log_group_home_dir = /var/lib/mysql
116 # You can set .._buffer_pool_size up to 50 - 80 %
117 # of RAM but beware of setting memory usage too high
118 #innodb_buffer_pool_size = 16M
119 #innodb_additional_mem_pool_size = 2M
120 # Set .._log_file_size to 25 % of buffer pool size
121 #innodb_log_file_size = 5M
122 #innodb_log_buffer_size = 8M
123 #innodb_flush_log_at_trx_commit = 1
124 #innodb_lock_wait_timeout = 50
126 [mysqldump]
127 quick
128 max_allowed_packet = 16M
130 [mysql]
131 #no-auto-rehash
132 # Remove the next comment character if you are not familiar with SQL
133 #safe-updates
135 [isamchk]
136 key_buffer = 20M
137 sort_buffer_size = 20M
138 read_buffer = 2M
139 write_buffer = 2M
141 [myisamchk]
142 key_buffer = 20M
143 sort_buffer_size = 20M
144 read_buffer = 2M
145 write_buffer = 2M
147 [mysqlhotcopy]
148 interactive-timeout