my.conf
von jcw- SNIPPET_DESC:
- datei
- SNIPPET_CREATION_TIME:
- 04.08.2017 20:01:17
- SNIPPET_PRUNE_TIME:
- Unendlich
- SNIPPET_TEXT:
-
- #
- # 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
- #
- 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
- lc-messages-dir = /usr/share/mysql
- 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 = 192K
- thread_cache_size = 8
- # This replaces the startup script AND checks MyISAM TABLES IF needed
- # the FIRST TIME they are touched
- myisam-recover = BACKUP
- #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.
- # AS OF 5.1 you can enable the log at runtime!
- #general_log_file = /var/log/mysql/mysql.log
- #general_log = 1
- #
- # Error log - should be very few entries.
- #
- log_error = /var/log/mysql/error.log
- #
- # Here you can see queries WITH especially long duration
- #slow_query_log_file = /var/log/mysql/mysql-slow.log
- #slow_query_log = 1
- #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
- #
- # * 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!
- #
- # * 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
- #
- # * 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/
Quellcode
Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN