mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-11 03:51:01 +00:00
Db runs mysql, mysqldump and mysqladmin inside the database container with docker exec -i when the server folder is a Docker installation, connecting over TCP on the container's loopback like the repack's commands do on the host. The password still travels only in MYSQL_PWD. Every caller keeps using Db unchanged (accounts, backups, population, migrations, the RA service account), and the host needs no MySQL client. The repack path is untouched: one line before its tools are looked up. A stopped container or a missing one is reported as a database that is not running. Tested: 4 new tests (commands built for the container, no password on a command line, repack unchanged, error classification), and a real run against the Docker folder: SQL queries, a quick backup (156 characters tables), restore with the previous database kept, a damaged backup refused, the RA service account created by SQL, the world server console reached through its published loopback port, an account created through it and listed by the Manager.