Update migrate.to.new.iredmail.server.html.
This commit is contained in:
parent
5ae1ee9818
commit
831661b2c1
|
@ -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
|
||||
|
|
|
@ -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><NEW-IP></code> by the real private IP address of your jailed system.</p>
|
||||
</div>
|
||||
<pre><code>USE mysql;
|
||||
UPDATE mysql.proc SET definer = 'root@<NEW-IP>' 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>
|
||||
|
|
Loading…
Reference in New Issue