summaryrefslogtreecommitdiffstats
path: root/abs/core/mysql/my.cnf
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-10-29 19:05:46 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-10-29 19:05:46 (GMT)
commit88b26331f2219c06ed6624d4e3094cd9e8ad7757 (patch)
tree472c35ab18a483d2d55243964d736c76db78b097 /abs/core/mysql/my.cnf
parenta669c8442c818a1288d80f101faafe15400c7ab1 (diff)
downloadlinhes_pkgbuild-88b26331f2219c06ed6624d4e3094cd9e8ad7757.zip
linhes_pkgbuild-88b26331f2219c06ed6624d4e3094cd9e8ad7757.tar.gz
linhes_pkgbuild-88b26331f2219c06ed6624d4e3094cd9e8ad7757.tar.bz2
mysq: update to 5.5
Diffstat (limited to 'abs/core/mysql/my.cnf')
-rwxr-xr-x[-rw-r--r--]abs/core/mysql/my.cnf51
1 files changed, 21 insertions, 30 deletions
diff --git a/abs/core/mysql/my.cnf b/abs/core/mysql/my.cnf
index 6f0a683..457a750 100644..100755
--- a/abs/core/mysql/my.cnf
+++ b/abs/core/mysql/my.cnf
@@ -1,13 +1,14 @@
-# Example MySQL config file for large systems.
+# MySQL config file for medium systems.
#
-# This is for a large system with memory = 512M where the system runs mainly
-# MySQL.
+# This is for a system with little memory (32M - 64M) where MySQL plays
+# an important part, or systems up to 128M where MySQL is used together with
+# other programs (such as a web server)
#
-# You can copy this file to
-# /etc/my.cnf to set global options,
-# mysql-data-dir/my.cnf to set server-specific options (in this
-# installation this directory is /var) or
-# ~/.my.cnf to set user-specific options.
+# MySQL programs look for option files in a set of
+# locations which depend on the deployment platform.
+# You can copy this option file to one of those
+# locations. For information about these locations, see:
+# http://dev.mysql.com/doc/mysql/en/option-files.html
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
@@ -26,7 +27,9 @@ socket = /var/run/mysqld/mysqld.sock
port = 3306
socket = /var/run/mysqld/mysqld.sock
datadir = /data/srv/mysql
-skip-locking
+skip-external-locking
+
+net_buffer_length = 8K
key_buffer_size = 80M
max_allowed_packet = 1M
table_open_cache = 256
@@ -39,20 +42,22 @@ myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 16M
join_buffer_size = 128K
-# Try number of CPU's*2 for thread_concurrency
-#thread_concurrency = 8
+
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
-#
+#
#skip-networking
# Replication Master Server (default)
# binary logging is required for replication
-#log-bin
+log-bin=mysql-bin
+
+# binary logging format - mixed recommended
+binlog_format=mixed
# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
@@ -112,15 +117,7 @@ server-id = 1
#master-port = <port>
#
# binary logging - not required for slaves, but recommended
-#log-bin
-
-# Point the following paths to different dedicated disks
-#tmpdir = /tmp/
-#log-update = /path-to-dedicated-directory/hostname
-
-# Uncomment the following if you are using BDB tables
-#bdb_cache_size = 4M
-#bdb_max_lock = 10000
+#log-bin=mysql-bin
# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /var/lib/mysql
@@ -141,18 +138,12 @@ quick
max_allowed_packet = 16M
[mysql]
-#no-auto-rehash
+no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
-[isamchk]
-key_buffer = 20M
-sort_buffer_size = 20M
-read_buffer = 2M
-write_buffer = 2M
-
[myisamchk]
-key_buffer = 20M
+key_buffer_size = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M