Kashub's Code Barn - "Mysql - default config file (my.cnf) on Ubuntu/Debian"

podświetlone jako div (dodał(a) kashub @ 2010-05-17 17:17:24)

Twoja wyszukiwarka
T-Mobile
Podświetl ten kod w:
Ostatnio dodane:
Losowe wpisy:
#
# The MySQL database server configuration file.
#
# You can copy this TO one of:
# - "/etc/mysql/my.cnf" TO set GLOBAL options,
# - "~/.my.cnf" TO set user-specific options.
# 
# One can use all long options that the PROGRAM supports.
# Run PROGRAM with --help TO get a list of available options AND with
# --print-defaults TO see which it would actually understand AND use.
#
# FOR explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
 
# This will be passed TO all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially IF they contain "#" chars...
# Remember TO edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
 
# Here is entries FOR some specific programs
# The following values assume you have at least 32M ram
 
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
 
[mysqld]
#
# * Basic Settings
#
 
#
# * IMPORTANT
# IF you make changes TO these settings AND your system uses apparmor, you may
# also need TO also adjust /etc/apparmor.d/usr.sbin.mysqld.
#
 
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
language = /usr/share/mysql/english
skip-external-locking
#
# Instead of skip-networking the DEFAULT is now TO listen only on
# localhost which is more compatible AND is NOT less secure.
bind-address = 127.0.0.1
#
# * Fine Tuning
#
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 128K
thread_cache_size = 8
#max_connections = 100
#table_cache = 64
#thread_concurrency = 10
#
# * Query Cache Configuration
#
query_cache_limit = 1M
query_cache_size = 16M
#
# * Logging AND Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log TYPE is a performance killer.
#log = /var/log/mysql/mysql.log
#
# Error logging goes TO syslog. This is a Debian improvement :)
#
# Here you can see queries with especially long duration
#log_slow_queries = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy TO replay backup logs OR FOR replication.
# note: IF you are setting up a replication slave, see README.Debian about
# other settings you may need TO change.
#server-ID = 1
#log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
#binlog_do_db = include_database_name
#binlog_ignore_db = include_database_name
#
# * BerkeleyDB
#
# Using BerkeleyDB is now discouraged as its support will cease in 5.1.12.
skip-bdb
#
# * InnoDB
#
# InnoDB is enabled by DEFAULT with a 10MB datafile in /var/lib/mysql/.
# Read the manual FOR more InnoDB related options. There are many!
# You might want TO disable InnoDB TO shrink the mysqld PROCESS by circa 100MB.
#skip-innodb
#
# * Security Features
#
# Read the manual, too, IF you want chroot!
# chroot = /var/lib/mysql/
#
# FOR generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem
 
 
 
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
 
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
 
[isamchk]
key_buffer = 16M
 
#
# * NDB Cluster
#
# See /usr/share/doc/mysql-server-*/README.Debian FOR more information.
#
# The following configuration is read by the NDB Data Nodes (ndbd processes)
# NOT FROM the NDB Management Nodes (ndb_mgmd processes).
#
# [MYSQL_CLUSTER]
# ndb-connectstring=127.0.0.1
 
 
#
# * IMPORTANT: Additional settings that can override those FROM this file!
# The files must END with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/
| Sklepy internetowe | | Sklep z oponami | | Opony całoroczne | | Opony letnie | | Opony zimowe | | Kamery IP sklep | | Dyskretny sexshop internetowy | | Programista Trójmiasto | | Załóż za darmo bloga | | Opisy GG |