Topic: how to change mysql database to remote server
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.1
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: FreeBSD 11.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL (MariaDB)
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi,
I would like to migrate the MySql/MariaDB on my iRedMail server to a remote server. I only want to move the database, so that all mail data is on the remote, keeping all other iRedMail services running on the current one.
I understand how to export and import the databases using mysqldump, and transfer them to the other server.
What settings/configs do I need to change to tell iRedMail to connect to the new remote server for all database queries?
This guide discusses the installation process on a remote server, but not how to change an existing instance's database location:
https://docs.iredmail.org/install.iredm … erver.html
Thank you!
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.