How do you back up a mySQL database?

The story is that my webhost has decided to upgrade both their servers and their control panel without giving me much in the way of advance warning. Which had the oh so fun side effect of wiping out my web site, short of what I had backed up (thankfully) a day or two before the change.

My SQL database and, by corollary, my phpBB message boards, OTOH, are unrecoverable, AFAICT. Judging from the email sent by tech support, quoted below, I have to telnet/SSH in and go command line. Unfortunately, I apparently suck at command line interface, or something went wrong, because I didn’t get the reaction (a backed up db) that I was expecting.

Any advice (or a layman’s translation)?

You’re with VO, right? Anyway, what error messages are you getting? You’re not typing --opt with the mysqldump command, are you? Also, you’re not supposed to have spaces after the -u and -p. Here’s exactly what you want to type (well, of course you want to replace “username” and “password” with the actual username and password):


mysqldump -uusername -ppassword > ~/backup.sql

It’s probably best to put this in your crontab and have it run once or twice a day. Ideally, you should write a little script to run this command then send you the file via e-mail or FTP.

Okay, now I’m muy annoyed. With RSANetworks, whose association with VO (whomever they are) is unknown to me.

I guess it’s all a moot point now, since the rat bastards have apparently gotten around to shutting down the server they upgraded.

sigh Well, it’s not like my boards had that many posts (I have posted more here than we had posts at SDoN), but still.

Crontabs, huh? I guess I should get around to figuring out what they are and how to run them and stuff…

vosn.net belongs to Ventures Online. So it appears that RSA Networks may be a reseller of Ventures Online (VO). I’d ask RSA flat-out if they are resellers of VO. If they are, and you have an issue with them, then you should probably take it up with VO.

Okay, I guess the server was down temporarily, as I managed to log in and backup the db.

Thing is now, though, that FTP has apparently been disabled as I get a permission denied message. Any ideas on how to get that bad boy out of there now?

I dunno what program you’re using to SSH in,
but if you’re coming from a Unix system of some sort, there’s probably a program called “scp” lying around. This is a remote file copy program based on SSH. If ssh works, it will too. If you’re coming from WinDoh’s! your SSH program might have some kind of file transfer through SSH option; check it out.
-Ben

ModernRonin, you are a god! (Not THE god, A god.)

You’ve also proven, btw, that I’m retarded when it comes to command line interface. I found myself a new SSH program, and it just so happens to have a nice Windows-looking file transfer thing built in. I dragged, and dropped, an voila backup.sql is sitting on my desktop.

Of course, now I have to see if I actually backed it up correctly…