wok diff mysql/stuff/etc/mysql/my.cnf @ rev 13187
Up: mysql to 5.5.27.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Aug 03 08:06:59 2012 +0000 (2012-08-03) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mysql/stuff/etc/mysql/my.cnf Fri Aug 03 08:06:59 2012 +0000 1.3 @@ -0,0 +1,145 @@ 1.4 +# MySQL config file for medium systems. 1.5 +# 1.6 +# This is for a system with little memory (32M - 64M) where MySQL plays 1.7 +# an important part, or systems up to 128M where MySQL is used together with 1.8 +# other programs (such as a web server) 1.9 +# 1.10 +# MySQL programs look for option files in a set of 1.11 +# locations which depend on the deployment platform. 1.12 +# You can copy this option file to one of those 1.13 +# locations. For information about these locations, see: 1.14 +# http://dev.mysql.com/doc/mysql/en/option-files.html 1.15 +# 1.16 +# In this file, you can use all long options that a program supports. 1.17 +# If you want to know which options a program supports, run the program 1.18 +# with the "--help" option. 1.19 + 1.20 +# The following options will be passed to all MySQL clients 1.21 +[client] 1.22 +#password = your_password 1.23 +port = 3306 1.24 +socket = /var/run/mysqld/mysqld.sock 1.25 + 1.26 +# Here follows entries for some specific programs 1.27 + 1.28 +# The MySQL server 1.29 +[mysqld] 1.30 +port = 3306 1.31 +socket = /var/run/mysqld/mysqld.sock 1.32 +datadir = /var/lib/mysql 1.33 +skip-external-locking 1.34 +key_buffer_size = 16M 1.35 +max_allowed_packet = 1M 1.36 +table_open_cache = 64 1.37 +sort_buffer_size = 512K 1.38 +net_buffer_length = 8K 1.39 +read_buffer_size = 256K 1.40 +read_rnd_buffer_size = 512K 1.41 +myisam_sort_buffer_size = 8M 1.42 + 1.43 +# Don't listen on a TCP/IP port at all. This can be a security enhancement, 1.44 +# if all processes that need to connect to mysqld run on the same host. 1.45 +# All interaction with mysqld must be made via Unix sockets or named pipes. 1.46 +# Note that using this option without enabling named pipes on Windows 1.47 +# (via the "enable-named-pipe" option) will render mysqld useless! 1.48 +# 1.49 +skip-networking 1.50 + 1.51 +# Replication Master Server (default) 1.52 +# binary logging is required for replication 1.53 +log-bin=mysql-bin 1.54 + 1.55 +# binary logging format - mixed recommended 1.56 +binlog_format=mixed 1.57 + 1.58 +# required unique id between 1 and 2^32 - 1 1.59 +# defaults to 1 if master-host is not set 1.60 +# but will not function as a master if omitted 1.61 +server-id = 1 1.62 + 1.63 +# Replication Slave (comment out master section to use this) 1.64 +# 1.65 +# To configure this host as a replication slave, you can choose between 1.66 +# two methods : 1.67 +# 1.68 +# 1) Use the CHANGE MASTER TO command (fully described in our manual) - 1.69 +# the syntax is: 1.70 +# 1.71 +# CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>, 1.72 +# MASTER_USER=<user>, MASTER_PASSWORD=<password> ; 1.73 +# 1.74 +# where you replace <host>, <user>, <password> by quoted strings and 1.75 +# <port> by the master's port number (3306 by default). 1.76 +# 1.77 +# Example: 1.78 +# 1.79 +# CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306, 1.80 +# MASTER_USER='joe', MASTER_PASSWORD='secret'; 1.81 +# 1.82 +# OR 1.83 +# 1.84 +# 2) Set the variables below. However, in case you choose this method, then 1.85 +# start replication for the first time (even unsuccessfully, for example 1.86 +# if you mistyped the password in master-password and the slave fails to 1.87 +# connect), the slave will create a master.info file, and any later 1.88 +# change in this file to the variables' values below will be ignored and 1.89 +# overridden by the content of the master.info file, unless you shutdown 1.90 +# the slave server, delete master.info and restart the slaver server. 1.91 +# For that reason, you may want to leave the lines below untouched 1.92 +# (commented) and instead use CHANGE MASTER TO (see above) 1.93 +# 1.94 +# required unique id between 2 and 2^32 - 1 1.95 +# (and different from the master) 1.96 +# defaults to 2 if master-host is set 1.97 +# but will not function as a slave if omitted 1.98 +#server-id = 2 1.99 +# 1.100 +# The replication master for this slave - required 1.101 +#master-host = <hostname> 1.102 +# 1.103 +# The username the slave will use for authentication when connecting 1.104 +# to the master - required 1.105 +#master-user = <username> 1.106 +# 1.107 +# The password the slave will authenticate with when connecting to 1.108 +# the master - required 1.109 +#master-password = <password> 1.110 +# 1.111 +# The port the master is listening on. 1.112 +# optional - defaults to 3306 1.113 +#master-port = <port> 1.114 +# 1.115 +# binary logging - not required for slaves, but recommended 1.116 +#log-bin=mysql-bin 1.117 + 1.118 +# Uncomment the following if you are using InnoDB tables 1.119 +#innodb_data_home_dir = /var/lib/mysql 1.120 +#innodb_data_file_path = ibdata1:10M:autoextend 1.121 +#innodb_log_group_home_dir = /var/lib/mysql 1.122 +# You can set .._buffer_pool_size up to 50 - 80 % 1.123 +# of RAM but beware of setting memory usage too high 1.124 +#innodb_buffer_pool_size = 16M 1.125 +#innodb_additional_mem_pool_size = 2M 1.126 +# Set .._log_file_size to 25 % of buffer pool size 1.127 +#innodb_log_file_size = 5M 1.128 +#innodb_log_buffer_size = 8M 1.129 +#innodb_flush_log_at_trx_commit = 1 1.130 +#innodb_lock_wait_timeout = 50 1.131 + 1.132 +[mysqldump] 1.133 +quick 1.134 +max_allowed_packet = 16M 1.135 + 1.136 +[mysql] 1.137 +no-auto-rehash 1.138 +# Remove the next comment character if you are not familiar with SQL 1.139 +#safe-updates 1.140 + 1.141 +[myisamchk] 1.142 +key_buffer_size = 20M 1.143 +sort_buffer_size = 20M 1.144 +read_buffer = 2M 1.145 +write_buffer = 2M 1.146 + 1.147 +[mysqlhotcopy] 1.148 +interactive-timeout