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

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

Twoja wyszukiwarka
Parcel ABC
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 | | Wózki dla dzieci | | Opony motocyklowe | | Opony specjalne | | Programista Trójmiasto | | Gdzie przenieść blog za darmo? | | Kody programów | | Skróć link | | Gnieżdżewo |