New Registration Transfer Hosting Only
Database backups
6 months ago  ::  Jul 23, 2008 - 10:53AM #1
Laura
Posts: 14

My site is completely database, its empty when the database goes down.  Yesterday's brief outage (back up by the time we finished dinner - thanks guys!Smile) really scared me and made me think about backups more seriously.  I could even mess up my own databases, or get caught by a SQLinjection (although I've prepared for this possibility to the best of my ability, I'm sure nothing is 100%).


I know on a shared server like this we can't have shell access.  I thus do all my maintenance from phpMyAdmin.  I've been looking around for good ways to back up my databases through the phpMyAdmin interface, but haven't found anything.  I'm sure you guys back up the databases too, but I've invested so much time in mine that I'd just feel more secure doing my own backups as well.



I've read that back ups of large databases can't be done through phpMyAdmin.  I've tried it using the 'export' tab and trying to save it to a file, but it always hangs up when I do that.  I'm able to do this for individual tables, just not the whole database - so perhaps my database is too large for a phpMyAdmin backup.


Does anyone know of any good 'how to' pages or tutorials online about backing up mySQL databases through phpMyAdmin?  Any personal suggestions?  Any info would be greatly appreciated!


Thanks!

6 months ago  ::  Jul 23, 2008 - 10:58PM #2
Laura
Posts: 14

Answering my own question...


I found this site and it worked. http://php.about.com/od/learnmysql/ss/mysql_backup_3.htm


I did it on a table by table basis.  Also, I saved the individual table with a suffix indicating which table they were.  I eliminated the suffix when importing them, just using the default name given by phpMyAdmin.  Another trick - you can't import a table if there's one with the same name already existant.  Just to be safe, I renamed my existing tables before importing my backups.  That way, if anything went wrong, I could just rename the original.


Hopefully someone else can benefit from this as well.

    Viewing this thread :: 0 registered and 1 guest
    No registered users viewing