]> git.pld-linux.org Git - packages/mysql.git/blobdiff - mysqld.conf
mysqld.conf: slow-query-log-file -> slow-query-log-file
[packages/mysql.git] / mysqld.conf
index 0a5ed0777a4e452e3b06203d418c2a15dd8e23a1..bb9b3a6dc8f46a87e68f3fc514e8db4cfdae1526 100644 (file)
@@ -3,7 +3,6 @@
 #
 # One can use all long options that the mysqld supports.
 # Run mysqld with --help to get a whole list of available options
-# $Id$
 
 # This section must be the first!
 [mysqld]
@@ -29,6 +28,13 @@ user        = mysql
 # Don't use system locking
 skip-external-locking
 
+# Disabling symbolic-links is recommended to prevent assorted security risks
+symbolic-links=0
+
+# Default storage engine is InnoDB since 5.5.5
+# You may revert to previous behaviour by specifiying MyISAM here
+#default-storage-engine=InnoDB
+
 # Don't listen on a TCP/IP port at all. This is 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.
@@ -43,27 +49,16 @@ skip-networking
 # Emergency option. Use only if you really need this.
 #skip-grant-tables
 
-# skip startup of slave
-#skip-slave-start
-
-# slave setup
-#relay-log=slave-relay-bin
-#master-host=master
-#master-user=replica
-#master-port=3306
-#master-password=replica
-#report-host=db-slave.example.org
-
-# master does not ignore them, but we do
-#replicate-ignore-db=mysql
-#replicate-ignore-db=test
-
-#replicate-rewrite-db=delfi->delfi_ro
+# http://dev.mysql.com/doc/refman/5.5/en/server-options.html#option_mysqld_default-storage-engine
+#default-storage-engine=MyISAM
 
 # Replication Master Server (default)
 # binary logging is required for replication
 #log-bin=mysql-bin
 
+# max size of master binlog files
+#max_binlog_size=256M
+
 # If non-zero, binary logs will be purged after expire_logs_days days; possible
 # purges happen at startup and at binary log rotation.
 #expire-logs-days=30
@@ -92,7 +87,32 @@ skip-networking
 #binlog-ignore-db=mysql
 #binlog-ignore-db=test
 
+# slave setup
+#relay-log=slave-relay-bin
+#report-host=db-slave.example.org
+
+# skip startup of slave
+#skip-slave-start
+
+# master does not ignore them, but we do
+#replicate-ignore-db=mysql
+#replicate-ignore-db=test
+#replicate-ignore-table=db1.tbl1
+#replicate-ignore-table=db2.tbl2
+
+#replicate-rewrite-db=delfi->delfi_ro
+
+# replication local log
+#max_relay_log_size=256M
+
+# https://dev.mysql.com/doc/refman/5.6/en/log-destinations.html
 # global option where logs be written
+# affects slow-query-log, general-log direcives
+# Possible values: FILE, TABLE
+# NOTE: when using table, you can switch to MyISAM, but the contents is still
+# not replicated, also mysqldump will not dump data, only create table
+# statements
+#log-output = TABLE
 log-output = FILE
 
 # mysqld error log (stderr)
@@ -101,7 +121,7 @@ log-warnings = 2
 
 # Log slow queries
 slow-query-log
-slow-query-log_file = /var/log/mysql/slow.log
+slow-query-log-file = /var/log/mysql/slow.log
 
 # Log connections and queries. It slows down MySQL so it's disabled by default
 #general-log
@@ -150,17 +170,12 @@ slow-query-log_file = /var/log/mysql/slow.log
 #max_heap_table_size=32M
 #thread_cache_size=16
 #thread_stack=65536
-# Try number of CPU's*2
-#thread_concurrency=8
+# http://www.mysqlperformanceblog.com/2012/06/04/thread_concurrency-doesnt-do-what-you-expect/
+# thread_concurrency is deprecated, removed in 5.6.1 and works on old Solaris versions < 9
 #wait_timeout=28800
 #query_cache_size=8M
 #query_cache_limit=1M
 
-# replication local log
-#max_relay_log_size=256M
-# max size of master binlog files
-#max_binlog_size=256M
-
 # Fulltext search options
 #ft_min_word_len=2
 
@@ -178,12 +193,20 @@ myisam-recover
 #myisam_sort_buffer_size=4M
 
 
+# To completely disable InnoDB, use this option
+# this makes all innodb options being unknown options (including skip-innodb)
+# @deprecated
+#ignore-builtin-innodb
 
 #
 # InnoDB tables options (see MySQL manual)
 #
 #skip-innodb
 
+# http://stackoverflow.com/questions/2646373/mysql-data-file-wont-shrink
+# http://dev.mysql.com/doc/refman/5.5/en/innodb-multiple-tablespaces.html
+innodb_file_per_table
+
 # these are actual defaults (as of 5.0.26)
 innodb_data_home_dir = @clusterdir@/mysqldb/db
 innodb_data_file_path = ibdata1:10M:autoextend
@@ -205,3 +228,8 @@ innodb_log_buffer_size=1M
 [mysqladmin]
 user        = mysql_sysadmin
 password    =
+
+# used by initscript to fetch slave status
+[mysql]
+user        = mysql
+password    =
This page took 0.292785 seconds and 4 git commands to generate.