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
11 # The following options will be passed to all MySQL clients
13 #password = your_password
15 socket = /var/run/mysqld/mysqld.sock
17 # Here follows entries for some specific programs
22 socket = /var/run/mysqld/mysqld.sock
23 datadir = /var/lib/mysql
26 max_allowed_packet = 1M
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!
40 # Replication Master Server (default)
41 # binary logging is required for replication
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
49 # Replication Slave (comment out master section to use this)
51 # To configure this host as a replication slave, you can choose between
54 # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
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).
65 # CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
66 # MASTER_USER='joe', MASTER_PASSWORD='secret';
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
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
101 # binary logging - not required for slaves, but recommended
104 # Point the following paths to different dedicated disks
106 #log-update = /path-to-dedicated-directory/hostname
108 # Uncomment the following if you are using BDB tables
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
128 max_allowed_packet = 16M
132 # Remove the next comment character if you are not familiar with SQL
137 sort_buffer_size = 20M
143 sort_buffer_size = 20M