Skip to content

Instantly share code, notes, and snippets.

@LBeckX
Last active February 3, 2024 12:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LBeckX/cc68e14bd1c16942b98991af9bf4d5ca to your computer and use it in GitHub Desktop.
Save LBeckX/cc68e14bd1c16942b98991af9bf4d5ca to your computer and use it in GitHub Desktop.
MySQL / MariaDB Optimierung Server mit 32 GB
[mysqld]
# InnoDB Buffer Pool Size: 70% von 32GB
innodb_buffer_pool_size=22G
max_allowed_packet=100M
# Maximale Anzahl an Verbindungen
max_connections=500
# Query Cache
query_cache_type=1
query_cache_size=64M
query_cache_limit=256K
query_cache_min_res_unit=2k
# Größe der temporären Tabellen
tmp_table_size=512M
max_heap_table_size=256M
# JOIN-Buffer-Größe
join_buffer_size=64M
# InnoDB Log File Size
innodb_log_file_size=512M
# InnoDB disable strict mode
innodb_strict_mode=0
# Die innodb_flush_method Option bestimmt, wie MySQL und InnoDB Daten auf die Festplatte schreiben.
innodb_flush_method=O_DIRECT
innodb_log_buffer_size=64M
innodb_file_per_table=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment