Typo in en_US/installation/0-install.iredmail.with.remote.mysql.server.md
This commit is contained in:
parent
d098bf37cd
commit
80c96a0b11
|
@ -32,16 +32,17 @@ from iRedMail server (`192.168.1.200` in our case).
|
||||||
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2479/mysqld
|
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2479/mysqld
|
||||||
```
|
```
|
||||||
|
|
||||||
If MySQL server is listening on only 127.0.0.1, you should comment out
|
If MySQL server is listening on only 127.0.0.1, please update parameter
|
||||||
`bind-address` parameter in MySQL config file `my.cnf` to make it listen on all
|
`bind-address` in MySQL config file `my.cnf` to make sure it listens on all
|
||||||
available network interfaces, and restart MySQL service.
|
available IPv4 addresses like below, restarting MySQL service is required:
|
||||||
|
|
||||||
* On Red Hat Enterprise Linux, CentOS, openSUSE, OpenBSD, it's `/etc/my.cnf`.
|
* On Red Hat Enterprise Linux, CentOS, openSUSE, OpenBSD, it's `/etc/my.cnf`.
|
||||||
* On Debian, Ubuntu, it's `/etc/mysql/my.cnf`.
|
* On Debian, Ubuntu, it's `/etc/mysql/my.cnf`.
|
||||||
* On FreeBSD, it's `/var/db/mysql/my.cnf`.
|
* On FreeBSD, it's `/var/db/mysql/my.cnf`.
|
||||||
|
|
||||||
```
|
```
|
||||||
#bind-address = 127.0.0.1
|
# If you comment out this parameter, it listens on all available IPv6 addresses
|
||||||
|
bind-address = 0.0.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
* Make sure remote MySQL request will not be blocked by network firewall like
|
* Make sure remote MySQL request will not be blocked by network firewall like
|
||||||
|
@ -52,9 +53,10 @@ available network interfaces, and restart MySQL service.
|
||||||
strong password):
|
strong password):
|
||||||
|
|
||||||
```
|
```
|
||||||
mysql> GRANT ALL PRIVILEGES ON *.* TO 'admin_iredmail'@'192.168.1.200' IDENTIFIED BY 'admin_password' WITH GRANT OPTION;
|
-- Run on remote MySQL server as root user
|
||||||
mysql> FLUSH PRIVILEGES;
|
GRANT ALL PRIVILEGES ON *.* TO 'admin_iredmail'@'192.168.1.200' IDENTIFIED BY 'admin_password' WITH GRANT OPTION;
|
||||||
mysql> FLUSH HOSTS;
|
FLUSH PRIVILEGES;
|
||||||
|
FLUSH HOSTS;
|
||||||
```
|
```
|
||||||
|
|
||||||
With above commands, MySQL user `admin_iredmail` is allowed to connect from IP
|
With above commands, MySQL user `admin_iredmail` is allowed to connect from IP
|
||||||
|
@ -77,20 +79,23 @@ delete related MySQL users, because they will be created by iRedMail
|
||||||
automatically on remote MySQL server:
|
automatically on remote MySQL server:
|
||||||
|
|
||||||
```
|
```
|
||||||
mysql> DROP DATABASE amavisd;
|
-- Run on remote MySQL server as root user
|
||||||
mysql> DROP DATABASE cluebringer;
|
DROP DATABASE amavisd;
|
||||||
mysql> DROP DATABASE iredadmin;
|
DROP DATABASE cluebringer;
|
||||||
mysql> DROP DATABASE roundcubemail;
|
DROP DATABASE iredadmin;
|
||||||
mysql> DROP DATABASE sogo;
|
DROP DATABASE iredapd;
|
||||||
mysql> DROP DATABASE vmail;
|
DROP DATABASE roundcubemail;
|
||||||
|
DROP DATABASE sogo;
|
||||||
|
DROP DATABASE vmail;
|
||||||
|
|
||||||
mysql> DROP USER 'amavisd'@'192.168.1.200';
|
DROP USER 'amavisd'@'192.168.1.200';
|
||||||
mysql> DROP USER 'cluebringer'@'192.168.1.200';
|
DROP USER 'cluebringer'@'192.168.1.200';
|
||||||
mysql> DROP USER 'iredadmin'@'192.168.1.200';
|
DROP USER 'iredadmin'@'192.168.1.200';
|
||||||
mysql> DROP USER 'roundcube'@'192.168.1.200';
|
DROP USER 'iredapd'@'192.168.1.200';
|
||||||
mysql> DROP USER 'sogo'@'192.168.1.200';
|
DROP USER 'roundcube'@'192.168.1.200';
|
||||||
mysql> DROP USER 'vmail'@'192.168.1.200';
|
DROP USER 'sogo'@'192.168.1.200';
|
||||||
mysql> DROP USER 'vmailadmin'@'192.168.1.200';
|
DROP USER 'vmail'@'192.168.1.200';
|
||||||
|
DROP USER 'vmailadmin'@'192.168.1.200';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Install iRedMail
|
## Install iRedMail
|
||||||
|
|
|
@ -52,15 +52,16 @@ from iRedMail server (<code>192.168.1.200</code> in our case).</p>
|
||||||
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2479/mysqld
|
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2479/mysqld
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p>If MySQL server is listening on only 127.0.0.1, you should comment out
|
<p>If MySQL server is listening on only 127.0.0.1, please update parameter
|
||||||
<code>bind-address</code> parameter in MySQL config file <code>my.cnf</code> to make it listen on all
|
<code>bind-address</code> in MySQL config file <code>my.cnf</code> to make sure it listens on all
|
||||||
available network interfaces, and restart MySQL service.</p>
|
available IPv4 addresses like below, restarting MySQL service is required:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>On Red Hat Enterprise Linux, CentOS, openSUSE, OpenBSD, it's <code>/etc/my.cnf</code>.</li>
|
<li>On Red Hat Enterprise Linux, CentOS, openSUSE, OpenBSD, it's <code>/etc/my.cnf</code>.</li>
|
||||||
<li>On Debian, Ubuntu, it's <code>/etc/mysql/my.cnf</code>.</li>
|
<li>On Debian, Ubuntu, it's <code>/etc/mysql/my.cnf</code>.</li>
|
||||||
<li>On FreeBSD, it's <code>/var/db/mysql/my.cnf</code>.</li>
|
<li>On FreeBSD, it's <code>/var/db/mysql/my.cnf</code>.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<pre><code>#bind-address = 127.0.0.1
|
<pre><code># If you comment out this parameter, it listens on all available IPv6 addresses
|
||||||
|
bind-address = 0.0.0.0
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -74,9 +75,10 @@ available network interfaces, and restart MySQL service.</p>
|
||||||
strong password):</p>
|
strong password):</p>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<pre><code>mysql> GRANT ALL PRIVILEGES ON *.* TO 'admin_iredmail'@'192.168.1.200' IDENTIFIED BY 'admin_password' WITH GRANT OPTION;
|
<pre><code>-- Run on remote MySQL server as root user
|
||||||
mysql> FLUSH PRIVILEGES;
|
GRANT ALL PRIVILEGES ON *.* TO 'admin_iredmail'@'192.168.1.200' IDENTIFIED BY 'admin_password' WITH GRANT OPTION;
|
||||||
mysql> FLUSH HOSTS;
|
FLUSH PRIVILEGES;
|
||||||
|
FLUSH HOSTS;
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p>With above commands, MySQL user <code>admin_iredmail</code> is allowed to connect from IP
|
<p>With above commands, MySQL user <code>admin_iredmail</code> is allowed to connect from IP
|
||||||
|
@ -96,20 +98,23 @@ address <code>192.168.1.200</code> with password <code>admin_password</code>.</p
|
||||||
backup existing databases <strong>on remote MySQL server first</strong>, then drop them and
|
backup existing databases <strong>on remote MySQL server first</strong>, then drop them and
|
||||||
delete related MySQL users, because they will be created by iRedMail
|
delete related MySQL users, because they will be created by iRedMail
|
||||||
automatically on remote MySQL server:</p>
|
automatically on remote MySQL server:</p>
|
||||||
<pre><code>mysql> DROP DATABASE amavisd;
|
<pre><code>-- Run on remote MySQL server as root user
|
||||||
mysql> DROP DATABASE cluebringer;
|
DROP DATABASE amavisd;
|
||||||
mysql> DROP DATABASE iredadmin;
|
DROP DATABASE cluebringer;
|
||||||
mysql> DROP DATABASE roundcubemail;
|
DROP DATABASE iredadmin;
|
||||||
mysql> DROP DATABASE sogo;
|
DROP DATABASE iredapd;
|
||||||
mysql> DROP DATABASE vmail;
|
DROP DATABASE roundcubemail;
|
||||||
|
DROP DATABASE sogo;
|
||||||
|
DROP DATABASE vmail;
|
||||||
|
|
||||||
mysql> DROP USER 'amavisd'@'192.168.1.200';
|
DROP USER 'amavisd'@'192.168.1.200';
|
||||||
mysql> DROP USER 'cluebringer'@'192.168.1.200';
|
DROP USER 'cluebringer'@'192.168.1.200';
|
||||||
mysql> DROP USER 'iredadmin'@'192.168.1.200';
|
DROP USER 'iredadmin'@'192.168.1.200';
|
||||||
mysql> DROP USER 'roundcube'@'192.168.1.200';
|
DROP USER 'iredapd'@'192.168.1.200';
|
||||||
mysql> DROP USER 'sogo'@'192.168.1.200';
|
DROP USER 'roundcube'@'192.168.1.200';
|
||||||
mysql> DROP USER 'vmail'@'192.168.1.200';
|
DROP USER 'sogo'@'192.168.1.200';
|
||||||
mysql> DROP USER 'vmailadmin'@'192.168.1.200';
|
DROP USER 'vmail'@'192.168.1.200';
|
||||||
|
DROP USER 'vmailadmin'@'192.168.1.200';
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<h2 id="install-iredmail">Install iRedMail</h2>
|
<h2 id="install-iredmail">Install iRedMail</h2>
|
||||||
|
|
Loading…
Reference in New Issue