[DOC] rectify galera recovery for systemd

the command to start with --wsrep-new-cluster is not correct, we need
to set the env in systemd.

Change-Id: I759cd745c4be9f2717606f28d21970acfec752d1
(cherry picked from commit 01de317648)
This commit is contained in:
Marc Gariepy 2018-02-09 14:34:18 -05:00 committed by Marc Gariépy (mgariepy)
parent 8460728893
commit fa7ea13db1
1 changed files with 3 additions and 1 deletions

View File

@ -84,7 +84,9 @@ one of the nodes.
## for init
# /etc/init.d/mysql start --wsrep-new-cluster
## for systemd
# systemctl start mysql --wsrep-new-cluster
# systemctl set-environment _WSREP_NEW_CLUSTER='--wsrep-new-cluster'
# systemctl start mysql
# systemctl set-environment _WSREP_NEW_CLUSTER=''
Please also have a look at `upstream starting a cluster page <http://galeracluster.com/documentation-webpages/startingcluster.html>`_