fixed mysql for Debian based distro's

This commit is contained in:
2020-09-25 11:29:14 +02:00
parent 9c3ad426b3
commit 469599b260
2 changed files with 6 additions and 1 deletions

View File

@@ -8,6 +8,11 @@ systemctl stop mysql
rm -rf /etc/mysql/ /etc/my.cnf.d/ /etc/my.cnf rm -rf /etc/mysql/ /etc/my.cnf.d/ /etc/my.cnf
mkdir /etc/mysql/ mkdir /etc/mysql/
wget -q -t7 "$mrepo"/raw/branch/"$mbranch"/config/MySQL/mysqld-V8.cnf -O /etc/mysql/my.cnf 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 start mysql
systemctl enable mysql systemctl enable mysql

View File

@@ -20,6 +20,6 @@ max_allowed_packet = 16M
thread_stack = 192K thread_stack = 192K
thread_cache_size = 8 thread_cache_size = 8
myisam-recover-options = BACKUP myisam-recover-options = BACKUP
log-error = /var/log/mysqld.log log-error = MySQLlog
expire_logs_days = 10 expire_logs_days = 10
max_binlog_size = 100M max_binlog_size = 100M