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
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