Skip to content

Commit 2a8297b

Browse files
committed
Adding instructions for restarting MySQL on Debian/Ubuntu systems, since the name of the service differs. Found during Hack Day.
1 parent 2e06da5 commit 2a8297b

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

‎docs/en-US/database-replication.xml‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,14 @@ server_id=1
3737
<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>
3838
</listitem>
3939
<listitem>
40-
<para>Restart the MySQL service:</para>
40+
<para>Restart the MySQL service. On RHEL/CentOS systems, use:</para>
4141
<programlisting>
4242
# service mysqld restart
4343
</programlisting>
44+
<para>On Debian/Ubuntu systems, use:</para>
45+
<programlisting>
46+
# service mysql restart
47+
</programlisting>
4448
</listitem>
4549
<listitem>
4650
<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
9094
</programlisting>
9195
</listitem>
9296
<listitem>
93-
<para>Restart MySQL.</para>
97+
<para>Restart MySQL. Use "mysqld" on RHEL/CentOS systems:</para>
9498
<programlisting>
9599
# service mysqld restart
96100
</programlisting>
101+
<para>On Ubuntu/Debian systems use "mysql."</para>
102+
<programlisting>
103+
# service mysql restart
104+
</programlisting>
97105
</listitem>
98106
<listitem>
99107
<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>

0 commit comments

Comments
 (0)