Merge "Start MySQL on localhost for galera_secure_node"
This commit is contained in:
commit
417ceabecd
|
@ -19,6 +19,7 @@ STOP_MYSQL=false
|
||||||
|
|
||||||
if ! systemctl status mysql; then
|
if ! systemctl status mysql; then
|
||||||
STOP_MYSQL=true
|
STOP_MYSQL=true
|
||||||
|
systemctl set-environment MYSQLD_OPTS="--bind-address=127.0.0.1"
|
||||||
systemctl start mysql
|
systemctl start mysql
|
||||||
sleep 10
|
sleep 10
|
||||||
systemctl status mysql
|
systemctl status mysql
|
||||||
|
@ -41,4 +42,5 @@ if [ "${STOP_MYSQL}" = true ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create a marker file to ensure this script is not run again
|
# Create a marker file to ensure this script is not run again
|
||||||
|
systemctl unset-environment MYSQLD_OPTS
|
||||||
touch "/var/lib/mysql/osa_default_secured"
|
touch "/var/lib/mysql/osa_default_secured"
|
||||||
|
|
Loading…
Reference in New Issue