From 469599b260575898c16a92873582c4373570ec45 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Fri, 25 Sep 2020 11:29:14 +0200 Subject: [PATCH] fixed mysql for Debian based distro's --- conf.sh | 5 +++++ config/MySQL/mysqld-V8.cnf | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/conf.sh b/conf.sh index 9d6e95b..e659b9b 100644 --- a/conf.sh +++ b/conf.sh @@ -8,6 +8,11 @@ systemctl stop mysql rm -rf /etc/mysql/ /etc/my.cnf.d/ /etc/my.cnf mkdir /etc/mysql/ wget -q -t7 "$mrepo"/raw/branch/"$mbranch"/config/MySQL/mysqld-V8.cnf -O /etc/mysql/my.cnf +if [ "$osrel" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb10" ] ; then + sed -i 's#MySQLlog#/var/log/mysql/error.log#g' /etc/mysql/my.cnf +elif [ "$osrel" = "cent8" ]; then + sed -i 's#MySQLlog#/var/log/mysqld.log#g' /etc/mysql/my.cnf +fi systemctl start mysql systemctl enable mysql diff --git a/config/MySQL/mysqld-V8.cnf b/config/MySQL/mysqld-V8.cnf index 40a6854..6cbe9b1 100644 --- a/config/MySQL/mysqld-V8.cnf +++ b/config/MySQL/mysqld-V8.cnf @@ -20,6 +20,6 @@ max_allowed_packet = 16M thread_stack = 192K thread_cache_size = 8 myisam-recover-options = BACKUP -log-error = /var/log/mysqld.log +log-error = MySQLlog expire_logs_days = 10 max_binlog_size = 100M \ No newline at end of file