I have a system with PHP + Apache + MariaDB all on one server.
I want to migrate MariaDB to another server, in this case separate PHP + Apache from the current server (and deactivate MariaDB) and leave MariaDB running on another server.
What would be the best way to do this?
Simply install Hestiacp on the other server with only MariaDB?
Can you confirm some questions for me please?
1 - On the new server, do I install only ubuntu + mariadb and do I not need to install hestiacp?
2 - With that done, on the main server, do I use the command v-add-database-host mysql new-server.com root password?
3 - Will the v-add-database commands executed on the main hestiacp server (apache + php) continue to work on the new server (with only mariadb)?
Yes but open port 3306 (Default Mysql port for at least your server ip)
Yes better would be v-add-database-host mysql new-server.com user password. Where the user has permissions to create new users / database and do all related commands
What path would you recommend for the current server that has MariaDB installed but will be migrated to another server?
Some alternatives that I see are:
1 - Completely uninstall MariaDB from the server. However, I think that could cause problems. Have you tried something similar or do you know more information?
2 - Run a command to stop MariaDB from running when starting the server. However, MariaDB will still be there.
3 - Reinstall the entire HestiAcp without MariaDB (the problem is that I have many customizations in HestiAcp).
Just to confirm and avoid problems…
On the current server where I have PHP + Apache + MariaDB, can I uninstall MariaDB without any problems (since I don’t use the email service)?
I believe I will need to disable MariaDB backups, and also send backups via FTP. Apart from that, do you remember any other procedure to be done before disabling MariaDB (or any other point that you consider important)?
More 200 databases… is possible in mariadb remote server run a restore or something like that?
If I have to do it manually I’m broke… there are a lot of databases