From f2e03cb0d84036607e8b7a9471a2a3c964560f69 Mon Sep 17 00:00:00 2001 From: vlaborie Date: Thu, 11 Oct 2018 10:42:59 +0200 Subject: [PATCH] Mise a jour config par defaut --- HowtoMySQL.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/HowtoMySQL.md b/HowtoMySQL.md index f34c5105..5a9b299d 100644 --- a/HowtoMySQL.md +++ b/HowtoMySQL.md @@ -134,7 +134,8 @@ back_log = 100 # Maximum d'erreurs avant de blacklister un hote max_connect_errors = 10 # Loguer les requetes trop longues -log_slow_queries = /var/log/mysql/mysql-slow.log +slow_query_log = 1 +slow_query_log_file = /var/log/mysql/mysql-slow.log long_query_time = 10 ###### Tailles @@ -152,7 +153,6 @@ max_heap_table_size = 64M ###### Cache # max_connections x nbre max de tables dans une jointure (defaut = 64) -table_cache = 4096 table_open_cache = 4096 table_definition_cache = 4096 # Taille max des requetes cachees (defaut = 1M) @@ -173,8 +173,6 @@ innodb_file_per_table # Taille memoire allouee pour le cache des datas et index # A ajuster en fonction de sa RAM (si serveur dedie a MySQL, on peut aller jusqu'a 80%) innodb_buffer_pool_size = 512M -# Taille buffer memoire pour structures internes InnoDB -innodb_additional_mem_pool_size = 16M # Nombre maximum de threads systeme concurents innodb_thread_concurrency = 16 # Ajuste la valeur des logs InnoDB @@ -184,8 +182,9 @@ innodb_thread_concurrency = 16 ###### Misc # charset utf8 par defaut -default-character-set = utf8 -collation-server = utf8_unicode_ci +default-character-set=utf8 +collation-server=utf8_unicode_ci +# Patch MySQL 5.5.53 secure-file-priv = "" ~~~