CLI: Start a MySQL Server
The following command starts a MySQL Server, whether it is a master or a slave.
The script will automatically detect if the host is a Master or a Slave and copy out the correct configuration file (my.cnf.slave or my.cnf.master) to the server.
[root@clustercontrol scripts]# ./start-mysqld.sh -h app03
app03: Copying '/tmp/my.cnf' [ok]
app03: Executing 'mv /tmp/my.cnf /etc/mysql/my.cnf' [ok]
app03: Executing '/etc/init.d/mysqld start' [ok]
It is also possible to explicitly start a slave server:
[root@clustercontrol scripts]# ./start-slave.sh -h app03
app03: Copying '/tmp/my.cnf' [ok]
app03: Executing 'mv /tmp/my.cnf /etc/mysql/my.cnf' [ok]
app03: Executing '/etc/init.d/mysqld start' [ok]
Please sign in to leave a comment.
Comments
0 comments