my.cnf
von ben89- SNIPPET_DESC:
- Datenbankkonfiguration
- SNIPPET_CREATION_TIME:
- 01.01.2018 23:06:26
- SNIPPET_PRUNE_TIME:
- Unendlich
- SNIPPET_TEXT:
-
- # MariaDB DATABASE server configuration file.
- #
- # You can copy this file 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
- lc_messages = en_US
- 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
- #
- innodb_use_native_aio = 0
- innodb_file_per_table = 2
- innodb_buffer_pool_size = 224G
- innodb_buffer_pool_instances = 224
- # innodb_change_buffer_max_size = 50
- innodb_write_io_threads = 64
- innodb_read_io_threads = 64
- innodb_log_file_size = 6G
- innodb_max_dirty_pages_pct = 0
- innodb_page_cleaners = 32
- innodb_purge_threads = 32
- innodb_flush_neighbors = 0
- # innodb_page_size = 4k
- innodb_log_buffer_size = 64M
- innodb_log_compressed_pages = OFF
- innodb_lock_wait_timeout = 1800
- innodb_thread_concurrency = 0
- innodb_open_files = 4000
- innodb_io_capacity = 4000
- innodb_io_capacity_max = 8000
- innodb_lru_scan_depth = 256
- innodb_flush_method = O_DIRECT
- #innodb_defragment = 1
- performance_schema = ON
- key_buffer_size = 2048M
- join_buffer_size = 512M
- max_allowed_packet = 1024M
- thread_stack = 192K
- thread_cache_size = 256
- table_open_cache = 10000
- tmp_table_size = 128M
- max_heap_table_size = 64M
- max_connections = 1001
- connect_timeout = 5
- wait_timeout = 3600
- sort_buffer_size = 4M
- bulk_insert_buffer_size = 16M
- innodb_flush_log_at_trx_commit = 2
- innodb_fast_shutdown = 1
- innodb_buffer_pool_dump_at_shutdown = 0
- #tx_isolation = READ-UNCOMMITTED
- transaction-isolation = READ-UNCOMMITTED
- #
- # * MyISAM
- #
- # This replaces the startup script AND checks MyISAM TABLES IF needed
- # the FIRST TIME they are touched. ON error, make copy AND try a repair.
- myisam_recover_options = BACKUP
- key_buffer_size = 128M
- #open-files-LIMIT = 2000
- myisam_sort_buffer_size = 512M
- concurrent_insert = 2
- read_buffer_size = 2M
- read_rnd_buffer_size = 1M
- #
- # * Query Cache Configuration
- #
- # Cache ONLY tiny RESULT sets, so we can fit more IN the query cache.
- query_cache_limit = 256M
- query_cache_size = 512M
- # FOR more WRITE intensive setups, SET TO DEMAND OR OFF
- #query_cache_type = DEMAND
- #
- # * 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
- log_warnings = 2
- #
- # Enable the slow query log TO see queries WITH especially long duration
- #slow_query_log[={0|1}]
- slow_query_log_file = /var/log/mysql/mariadb-slow.log
- long_query_time = 10
- #log_slow_rate_limit = 1000
- log_slow_verbosity = query_plan
- #log-queries-not-using-indexes
- #log_slow_admin_statements
- #
- # 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
- #report_host = master1
- #auto_increment_increment = 2
- #auto_increment_offset = 1
- #log_bin = /var/log/mysql/mariadb-bin
- #log_bin_index = /var/log/mysql/mariadb-bin.index
- # NOT fab FOR performance, but safer
- #sync_binlog = 1
- expire_logs_days = 5
- max_binlog_size = 1G
- # slaves
- #relay_log = /var/log/mysql/relay-bin
- #relay_log_index = /var/log/mysql/relay-bin.index
- #relay_log_info_file = /var/log/mysql/relay-bin.info
- #log_slave_updates
- #read_only
- #
- # IF applications support it, this stricter sql_mode prevents SOME
- # mistakes LIKE inserting invalid dates etc.
- sql_mode=ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
- #sql_mode = NO_ENGINE_SUBSTITUTION,TRADITIONAL
- #
- # * 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
- #
- # * Galera-related settings
- #
- [galera]
- # Mandatory settings
- #wsrep_on=ON
- #wsrep_provider=
- #wsrep_cluster_address=
- binlog_format=mixed
- default_storage_engine=InnoDB
- #innodb_autoinc_lock_mode=2
- #
- # Allow server TO accept connections ON ALL interfaces.
- #
- #bind-address=0.0.0.0
- #
- # Optional setting
- #wsrep_slave_threads=1
- #innodb_flush_log_at_trx_commit=0
- [mysqldump]
- quick
- quote-names
- max_allowed_packet = 1024M
- [mysql]
- #no-auto-rehash # faster START OF mysql but no tab completion
- [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