diff --git a/HowtoMySQL/Troubleshooting.md b/HowtoMySQL/Troubleshooting.md index 4aba3bc8..f1828b4e 100644 --- a/HowtoMySQL/Troubleshooting.md +++ b/HowtoMySQL/Troubleshooting.md @@ -866,4 +866,15 @@ Pour qu'un utilisateur puisse créer / modifié des TRIGGER, sans avoir le privi +---------------------------------+-------+ | log_bin_trust_function_creators | ON | +---------------------------------+-------+ -~~~ \ No newline at end of file +~~~ + +## Calculer la taille adéquate pour innodb_buffer_pool_size + +On peux calculer la taille adéquate pour la variable innodb_buffer_pool_size sur un serveur mysql, avec la requête suivante : + +~~~ +SELECT CEILING(Total_InnoDB_Bytes*1.6/POWER(1024,3)) RIBPS FROM ( SELECT SUM(data_length+index_length) Total_InnoDB_Bytes FROM information_schema.tables WHERE engine='InnoDB') A; +~~~ + +Il ne faut pas oublié d'augmenté également le innodb_buffer_pool_instances si innodb_buffer_pool_size et suppérieur ou égal à 4Gio. +On mets une instances par Gigaoctet pour le innodb_buffer_pool_instances. \ No newline at end of file