]> git.pld-linux.org Git - packages/mysql.git/blobdiff - mysqld.conf
add more comments about log-output directive
[packages/mysql.git] / mysqld.conf
index a799d8f6d9327efb1ec349c94051c98f08146c00..632ab021bc3a02f917212b7300542fffe7e3e994 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]
@@ -32,6 +31,10 @@ 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.
@@ -49,27 +52,13 @@ skip-networking
 # http://dev.mysql.com/doc/refman/5.5/en/server-options.html#option_mysqld_default-storage-engine
 #default-storage-engine=MyISAM
 
-# 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
-
 # 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
@@ -98,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)
@@ -162,11 +176,6 @@ slow-query-log_file = /var/log/mysql/slow.log
 #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
 
@@ -184,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
@@ -207,10 +224,12 @@ innodb_log_buffer_size=1M
 #innodb_file_io_threads=4
 #innodb_lock_wait_timeout=50
 
-# http://dev.mysql.com/doc/refman/5.5/en/innodb-multiple-tablespaces.html
-#innodb_file_per_table
-
 # used for logs rotation
 [mysqladmin]
 user        = mysql_sysadmin
 password    =
+
+# used by initscript to fetch slave status
+[mysql]
+user        = mysql
+password    =
This page took 0.057147 seconds and 4 git commands to generate.