mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
Adding instructions for restarting MySQL on Debian/Ubuntu systems, since the name of the service differs. Found during Hack Day.
This commit is contained in:
parent
2e06da552c
commit
2a8297bee5
@ -37,10 +37,14 @@ server_id=1
|
||||
<para>The server_id must be unique with respect to other servers. The recommended way to achieve this is to give the master an ID of 1 and each slave a sequential number greater than 1, so that the servers are numbered 1, 2, 3, etc.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Restart the MySQL service:</para>
|
||||
<para>Restart the MySQL service. On RHEL/CentOS systems, use:</para>
|
||||
<programlisting>
|
||||
# service mysqld restart
|
||||
</programlisting>
|
||||
<para>On Debian/Ubuntu systems, use:</para>
|
||||
<programlisting>
|
||||
# service mysql restart
|
||||
</programlisting>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Create a replication account on the master and give it privileges. We will use the "cloud-repl" user with the password "password". This assumes that master and slave run on the 172.16.1.0/24 network.</para>
|
||||
@ -90,10 +94,14 @@ innodb_lock_wait_timeout=600
|
||||
</programlisting>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Restart MySQL.</para>
|
||||
<para>Restart MySQL. Use "mysqld" on RHEL/CentOS systems:</para>
|
||||
<programlisting>
|
||||
# service mysqld restart
|
||||
</programlisting>
|
||||
<para>On Ubuntu/Debian systems use "mysql."</para>
|
||||
<programlisting>
|
||||
# service mysql restart
|
||||
</programlisting>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Instruct the slave to connect to and replicate from the master. Replace the IP address, password, log file, and position with the values you have used in the previous steps.</para>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user