Remote access to MariaDB

I really should check these things before making assumptions. Yes, phpMyAdmin will accept .bz2 uploads. However, the database is still too big; phpMyAdmin times out trying to import it. It does have a feature to try to break up the import, but it apparently isn’t smart enough to stop at a line break, so the second import starts with L,NULL,NULL,NULL,NULL,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL),, which of course fails.

So I think I’m back to importing the database dump at the command line. Getting it onto the NS8 host is easy enough with scp, of course. But where do I need to put it, and how do I get into the app to be able to run the appropriate commands?