[Ubuntu] install mysql init script for sysVinit compatibility (#4736)

This commit is contained in:
Mikhail Koliada
2021-12-14 21:46:30 +03:00
committed by GitHub
parent 44d41e873b
commit 9ec86a6e3e
3 changed files with 206 additions and 1 deletions

View File

@@ -45,6 +45,11 @@ if isUbuntu20 ; then
dpkg -i $package
done
# Install the /etc/init.d/mysql script for backward compatibility with sysVinit
cp $HELPER_SCRIPTS/mysql-service-helper.sh /etc/init.d/mysql
# Fix permission
chmod 755 /etc/init.d/mysql
# Start mysql to change its settings
systemctl start mysql.service
# Enable mysql log-in without sudo by activation of the mysql_native_password plugin