You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by jz...@apache.org on 2013/06/23 21:05:26 UTC

git commit: updated refs/heads/4.1 to c71eab7

Updated Branches:
  refs/heads/4.1 18f50d027 -> c71eab718


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/c71eab71
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c71eab71
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c71eab71

Branch: refs/heads/4.1
Commit: c71eab7180a0d94219d5c59b7107c02e3a9919de
Parents: 18f50d0
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:19 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/c71eab71/docs/en-US/database-replication.xml
----------------------------------------------------------------------
diff --git a/docs/en-US/database-replication.xml b/docs/en-US/database-replication.xml
index 8979ce1..7354aaa 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>