I think my question got kind of buried in this thread, so starting a new one…
I have a couple of databases I need to migrate from my NS7 system to NS8. Getting a dump of the database is easy enough with mysqldump
, and importing it through phpMyAdmin would be easy enough–if it weren’t too big. The dump file for one of the databases is 1.2 GB, phpMyAdmin times out importing it, and its “resume” feature is kind of broken. So to the CLI I go.
I’m given to understand that trying to copy files directly into a container is a bad practice. So based on this post, here’s what I think I should be doing:
- Copy the dump file into
/home/mariadb1
on NS8 runagent -m mariadb1
podman cp dumpfile.sql mariadb-app:/
podman exec -ti mariadb-app sh
mysql databasename < /dumpfile.sql
- Exit from however many layers of shell I’ve gotten into
Am I missing anything here?