This seems...obvious, and I don't know why it isn't more obviously googlable.
There is a directory:
/var/lib/mysql/$db_name/ and in that directory are some files that correspond to the relevant tables in the DB.
Just...copy the files into a new directory on a new machine, and the new machine will see your "new" database.
Our old "prod" server needs to be rebuilt. Now I know why people don't run gentoo in production, haha. There are some core packages that emerge flat out refuses to install right now. I'm sure I could force some things through, but honestly, I'd rather just go for a re-install.
Well, one of the packages that won't re-merge is mysql, which is what I use for DB. The daemon fell off, and when I try to restart it, it flames out (and no useful output no matter HOW many "-v"s I append to mysql_safe.)
I mostly stopped caring about this machine about a year ago (hey, right around the time thingist started!), and the backups were anything but fresh.
No matter, the old database is happily on thingist's server now, and I got what I needed out of it!
: "Prod" used to be the machine I used for an old project, newslily, which was the first thing that $cody and I built together (and is currently in the process of being rebuilt). Thingist started out on "dev", because it started out as what was supposed to be a tiny, tiny side project.
"Dev" became "prod", and this is now where all of my projects live.