Update migrate.to.new.iredmail.server.html.

This commit is contained in:
Zhang Huangbin 2020-05-11 14:42:37 +08:00
parent 5ae1ee9818
commit 831661b2c1
2 changed files with 11 additions and 14 deletions

View File

@ -87,17 +87,16 @@ ERROR 1449 (HY000): The user specified as a definer ('root'@'10.195.20.1') does
iRedMail installer created SQL tables (or VIEWs, TRIGGERs) as `root@10.195.20.1`
(`10.195.20.1` was private IP address of your old Jail system), but this
address was gone on new jailed system. You must replace old IP address by the
new one, fix it with SQL commands below as SQL root user:
!!! attention
Replace `<NEW-IP>` by the real private IP address of your jailed system.
new one before restoring the SQL tables, otherwise, triggers might have to be
re-created manualy later. For example,
```
USE mysql;
UPDATE mysql.proc SET definer = 'root@<NEW-IP>' WHERE definer='root@10.195.20.1';
perl -pi -e 's#`root`@`10.195.20.1`#`root`@`10.20.21.3`#g' vmail-2020-04-26-01:25:21.sql
perl -pi -e 's#`root`@`10.195.20.1`#`root`@`10.20.21.3`#g' amavisd-2020-04-26-01:25:21.sql
```
Then import this modified SQL file instead.
## Migrate mailboxes (Maildir format)
!!! warning

View File

@ -128,15 +128,13 @@ on new jailed system may have privilege error like this:</p>
<p>iRedMail installer created SQL tables (or VIEWs, TRIGGERs) as <code>root@10.195.20.1</code>
(<code>10.195.20.1</code> was private IP address of your old Jail system), but this
address was gone on new jailed system. You must replace old IP address by the
new one, fix it with SQL commands below as SQL root user:</p>
<div class="admonition attention">
<p class="admonition-title">Attention</p>
<p>Replace <code>&lt;NEW-IP&gt;</code> by the real private IP address of your jailed system.</p>
</div>
<pre><code>USE mysql;
UPDATE mysql.proc SET definer = 'root@&lt;NEW-IP&gt;' WHERE definer='root@10.195.20.1';
new one before restoring the SQL tables, otherwise, triggers might have to be
re-created manualy later. For example,</p>
<pre><code>perl -pi -e 's#`root`@`10.195.20.1`#`root`@`10.20.21.3`#g' vmail-2020-04-26-01:25:21.sql
perl -pi -e 's#`root`@`10.195.20.1`#`root`@`10.20.21.3`#g' amavisd-2020-04-26-01:25:21.sql
</code></pre>
<p>Then import this modified SQL file instead.</p>
<h2 id="migrate-mailboxes-maildir-format">Migrate mailboxes (Maildir format)</h2>
<div class="admonition warning">
<p class="admonition-title">Warning</p>