Merge "Change MySQL to remote mode"
This commit is contained in:
commit
33cf58c64c
@ -1,11 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Disable startup MySQL on boot in Ubuntu
|
||||
# Service mysqld dones't start on boot in Fedora
|
||||
# Service mysqld doesn't start on boot in Fedora
|
||||
# Delete config property 'bind-address' for remote mode (0.0.0.0)
|
||||
|
||||
if [ $(lsb_release -is) = 'Ubuntu' ]; then
|
||||
if [ -e "/etc/init/mysql.conf" ]; then
|
||||
sed -i "s/start on runlevel \[.*\]/start on never runlevel [2345]/g" /etc/init/mysql.conf
|
||||
sed -i '/bind-address/d' /etc/mysql/my.cnf
|
||||
else
|
||||
update-rc.d -f mysql remove
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user