You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ah...@apache.org on 2013/06/25 01:51:40 UTC
[04/50] [abbrv] git commit: updated refs/heads/vmsync to 049dd72
Adding instructions for restarting MySQL on Debian/Ubuntu systems, since the name of the service differs. Found during Hack Day.
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2a8297be
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2a8297be
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2a8297be
Branch: refs/heads/vmsync
Commit: 2a8297bee5417a76fbe87dd0361dbfecdeb76022
Parents: 2e06da5
Author: Joe Brockmeier <jz...@zonker.net>
Authored: Sun Jun 23 14:05:19 2013 -0500
Committer: Joe Brockmeier <jz...@zonker.net>
Committed: Sun Jun 23 14:05:58 2013 -0500
----------------------------------------------------------------------
docs/en-US/database-replication.xml | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2a8297be/docs/en-US/database-replication.xml
----------------------------------------------------------------------
diff --git a/docs/en-US/database-replication.xml b/docs/en-US/database-replication.xml
index bb14457..8ca8071 100644
--- a/docs/en-US/database-replication.xml
+++ b/docs/en-US/database-replication.xml
@@ -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>