From d705f8063fc369459f2881c9f91adc2c65bd25a3 Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Mon, 22 Jul 2019 12:08:44 +0200 Subject: [PATCH] COnfigure mysql for nextcloud --- etc/mysql/my.cnf | 32 ++++++++++++++++++++++++++++++++ installMySQL.sh | 1 + 2 files changed, 33 insertions(+) create mode 100644 etc/mysql/my.cnf diff --git a/etc/mysql/my.cnf b/etc/mysql/my.cnf new file mode 100644 index 0000000..6645e7d --- /dev/null +++ b/etc/mysql/my.cnf @@ -0,0 +1,32 @@ +[server] +skip-name-resolve +innodb_buffer_pool_size = 128M +innodb_buffer_pool_instances = 1 +innodb_flush_log_at_trx_commit = 2 +innodb_log_buffer_size = 32M +innodb_max_dirty_pages_pct = 90 +query_cache_type = 1 +query_cache_limit = 2M +query_cache_min_res_unit = 2k +query_cache_size = 64M +tmp_table_size= 64M +max_heap_table_size= 64M +slow-query-log = 1 +slow-query-log-file = /var/log/mysql/slow.log +long_query_time = 1 + +[client-server] +!includedir /etc/mysql/conf.d/ +!includedir /etc/mysql/mariadb.conf.d/ + +[client] +default-character-set = utf8mb4 + +[mysqld] +character-set-server = utf8mb4 +collation-server = utf8mb4_general_ci +transaction_isolation = READ-COMMITTED +binlog_format = ROW +innodb_large_prefix=on +innodb_file_format=barracuda +innodb_file_per_table=1 diff --git a/installMySQL.sh b/installMySQL.sh index ed87b7f..c51b44d 100644 --- a/installMySQL.sh +++ b/installMySQL.sh @@ -61,6 +61,7 @@ else exit fi +cp etc/mysql/my.cnf /etc/mysql/my.cnf echo "service mysql start" service mysql start -- GitLab