]> git.pld-linux.org Git - packages/mysql.git/blobdiff - mysqld.conf
Builds, inits db and starts
[packages/mysql.git] / mysqld.conf
index 3d6399964c7a1d9e019d14f1609cc2b721eb4f39..09808af2c7c9bc1441e6f344ef6644fba0b38f52 100644 (file)
-; The MySQL server configuration file.
-; One can use all long options that the mysqld supports.
-; Run mysqld with --help to get a whole list of available options
-; $Id$
+# The MySQL server configuration file.
+# vim:ft=mycnf
+#
+# One can use all long options that the mysqld supports.
+# Run mysqld with --help to get a whole list of available options
 
-; This section must be the first!
+# This section must be the first!
 [mysqld]
-datadir     = /var/lib/mysql/mysqldb/db
-pid-file    = /var/lib/mysql/mysqldb/mysql.pid
+datadir     = @clusterdir@/mysqldb/db
+pid-file    = @clusterdir@/mysqldb/mysql.pid
+socket      = @clusterdir@/mysqldb/mysql.sock
 port        = 3306
-socket      = /var/lib/mysql/mysql.sock
 user        = mysql
 
-;character-set-server=latin2
-;collation-server=latin2_general_ci
-;skip-character-set-client-handshake
+# ssl options
+#ssl-ca = /etc/ssl/certs/mysql{MYSQL_MAJOR}/ca-cert.pem
+#ssl-cert = /etc/ssl/certs/mysql{MYSQL_MAJOR}/server-cert.pem
+#ssl-key = /etc/ssl/certs/mysql{MYSQL_MAJOR}/server-key.pem
+#ssl-cipher = DHE-RSA-AES256-SHA
 
-; set default charset
-;default-character-set = latin1
-
-; Use passwords compatible with old 4.0 mysqld
-;old-passwords
-
-; Don't use system locking
-skip-locking
-
-; Don't allow connections over the network by default
+# 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.
 skip-networking
 
-; IP address to bind to
-;bind-address=127.0.0.1
-
-; no dns
-;skip-name-resolve
-
-; Emergency option. Use only if you really need this.
-;skip-grant-tables
-
-; replication options
-;server-id=2
-
-; 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
-
-; master does not ignore them, but we do
-;replicate-ignore-db=mysql
-;replicate-ignore-db=test
-
-;replicate-rewrite-db=delfi->delfi_ro
-
-; master setup
-;log-bin=binlog
-
-; databases to be included in binlog
-;binlog-do-db=db1
-; or excluded
-;binlog-ignore-db=mysql
-;binlog-ignore-db=test
-
-; Don't flush key buffers between writes for any MyISAM
-; set this if you have dedicated slave server where writes aren't important
-;delay-key-write-for-all-tables
-
-; Log connections and queries. It slows down MySQL so it's disabled by default
-;log        = /var/log/mysql/log
-
-; Log all updates.
-;log-update = /var/log/mysql/update
-; Log some extra information to update log
-;log-long-format
-
-; Language
-;language   = polish
+# IP address to bind to
+#bind-address=127.0.0.1
 
-; Path for temporary files. Several paths may be specified, separated by a
-; colon (:), in this case they are used in a round-robin fashion.
-;tmpdir      = /var/tmp
+# no dns
+#skip-name-resolve
 
-;
-; Internal server variables
-;
+# Emergency option. Use only if you really need this.
+#skip-grant-tables
 
-;set-variable = back_log=5
-;set-variable = connect_timeout=5
-;set-variable = delayed_insert_timeout=300
-;set-variable = delayed_insert_limit=100
-;set-variable = flush_time=0
-;set-variable = join_buffer_size=131072
-;set-variable = key_buffer_size=8M
-;set-variable = long_query_time=10
-;set-variable = max_allowed_packet=1M
-;set-variable = max_connections=100
-;set-variable = max_user_connections=0
-;set-variable = max_connect_errors=10
-;set-variable = max_delayed_insert_threads=20
-;set-variable = delayed_queue_size=1000
-;set-variable = max_join_size=4294967295
-;set-variable = max_sort_length=1024
-;set-variable = max_write_lock_count=4294967295
-;set-variable = net_buffer_length=16384
-;set-variable = record_buffer=131072
-;set-variable = sort_buffer_size=2M
-;set-variable = table_cache=64
-;set-variable = tmp_table_size=1M
-;set-variable = max_heap_table_size=32M
-;set-variable = thread_cache_size=16
-;set-variable = thread_stack=65536
-; Try number of CPU's*2
-;set-variable = thread_concurrency=8
-;set-variable = wait_timeout=28800
-;set-variable = query_cache_size=8M
-;set-variable = query_cache_limit=1M
+# 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
 
-; replication local log
-;set-variable = max_relay_log_size=256M
-; max size of master binlog files
-;set-variable = max_binlog_size=256M
+# mysqld error log (stderr)
+log-error = /var/log/mysql{MYSQL_MAJOR}/mysqld.log
+log-error-verbosity = 2
 
+# Log slow queries
+slow-query-log
+slow-query-log-file = /var/log/mysql{MYSQL_MAJOR}/slow.log
 
-;
-; MyISAM tables options
-;
+# Log connections and queries. It slows down MySQL so it's disabled by default
+#general-log
+#general-log-file = /var/log/mysql{MYSQL_MAJOR}/query.log
 
-; Don't flush key buffers between writes for any MyISAM
-;delay-key-write-for-all-tables
+# Log all updates.
+#log-update = /var/log/mysql{MYSQL_MAJOR}/update
+# Log some extra information to update log
+#log-long-format
 
-; Repair automatically on open if the table wasn't closed properly.
-myisam-recover
-;
-;set-variable = myisam_sort_buffer_size=4M
+# Language
+#lc-messages = pl_PL
 
+# Path for temporary files. Several paths may be specified, separated by a
+# colon (:), in this case they are used in a round-robin fashion.
+#tmpdir      = /var/tmp
 
-
-;
-; InnoDB tables options (see MySQL manual)
-;
-;skip-innodb
-
-;innodb_data_home_dir = /var/lib/mysql/innodb/data
-;innodb_data_file_path = 00:10M;01:20M
-;set-variable = innodb_mirrored_log_groups=1
-;innodb_log_group_home_dir = /var/lib/mysql/innodb/log
-;set-variable = innodb_log_files_in_group=3
-;set-variable = innodb_log_file_size=30M
-;set-variable = innodb_log_buffer_size=8M
-
-;innodb_flush_log_at_trx_commit=1
-;innodb_log_arch_dir = /var/lib/mysql/innodb/log
-;innodb_log_archive=0
-;set-variable = innodb_buffer_pool_size=80M
-;set-variable = innodb_additional_mem_pool_size=10M
-;set-variable = innodb_file_io_threads=4
-;set-variable = innodb_lock_wait_timeout=50
-
-
-;
-; Berkeley DB tables options
-;
-; Don't use berkeley db (saves a lot of memory)
-;skip-bdb
-
-;bdb-home          =  /var/lib/mysql/db
-;bdb-log-dir       =  /var/lib/mysql/bdb/log
-;bdb-tmpdir        =  /var/lib/mysql/bdb/tmp
-
-
-;bdb-lock-detect   =  DEFAULT
-
-; Don't synchronously flush logs.
-;bdb-no-sync
-
-; Don't start Berkeley DB in recover mode.
-;bdb-no-recover
-
-; Start Berkeley DB in multi-process mode (Don't use `DB_PRIVATE'
-; when initializing Berkeley DB
-;bdb-shared-data
-
-;set-variable      = bdb_max_lock=1000
-
-
-; used for logs rotation
-[mysqladmin]
-user        = mysql_logrotate
+# used for logs rotation or status check for replications
+[client]
+user        = mysql_sysadmin
 password    =
-
-; vim:syn=dosini
This page took 0.036761 seconds and 4 git commands to generate.