April 28, 2008

Backing up WordPress with phpMyAdmin

With a multitude of upgrades released every 30 seconds in the WordPress community, it's integral that a regular back-up is taken just to be on the safe side. Although there are plugins available which do this for you, I'm a cynical old bugger and don't trust anything or anyone.

Most hosts supply phpMyAdmin. If you have access to MySQL Databases, chances are you have phpMyAdmin. You will need to find this little tool. If you're with Site5, go into SiteAdmin and select the option from under MySQL Databases in the left menu. If you've got standard cpanel hosting, go into cpanel > MySQL Databases, and phpMyAdmin is linked near the bottom.

Once your phpMyAdmin window is open, find your WordPress blog in the menu on the left hand side. This may be in a list or a drop-down menu, but will be in there. Usually named username_xxx, where username is the name you use to log into cpanel/SiteAdmin and xxx is the name of the database. Once selected, the main database page should load. Choose Export from the menu across the top:

export db

When the Export page has loaded, make sure all tables are selected:

tables highlighted

Then, near the bottom of the page tick 'Save as File' > zipped option. When you're ready, click Go. Save the file to your computer, and tada: one database back-up.

Comments

There are currently 18 approved responses to "Backing up WordPress with phpMyAdmin".

  1. Barbilee   April 28th, 2008 [gravatar]

    thanks i always wonders how to do this .......... also how to movie it to my root folder from the sub folder that its in .............. yah i am still a dumb n00b with wordpress :(

  2. Meli   April 28th, 2008 [gravatar]

    Got a request for you. I had figured out this way to back things up a while back (I don't trust plugins either), and thankfully nothing's ever gone wrong because I don't know how to USE this backup in case of something messing up. Could you enlighten us? God, I feel dumb!

  3. Jem   April 28th, 2008 [gravatar]

    I plan to post that one next Meli - probably tomorrow :)

  4. Nyx   April 28th, 2008 [gravatar]

    ... there are ways other than this to backup a database? :O

  5. Chien Yee   April 28th, 2008 [gravatar]

    I use the auto tool cPanel has, because I'm too lazy :P

  6. Sarah   April 28th, 2008 [gravatar]

    Thanks. I need to do this.

  7. Niki   April 28th, 2008 [gravatar]

    @ Chien: You're not alone! :P

  8. Hannah   April 28th, 2008 [gravatar]

    Or you could be lazy like me and use the WordPress Database Backup plugin ;D

  9. Jessica   April 28th, 2008 [gravatar]

    I just lost the contents of my database during the latest upgrade, and phpMyAdmin wouldn't let me restore from the backup Wordpress Database Backup gave me. I don't know if it would have let me restore from a phpMyAdmin backup (it just kept whinging about "Rails application failed to start properly"), but MAYBE it would have stood a better chance of working!

  10. Vera   April 29th, 2008 [gravatar]

    For me it depends: most of the time I use the plugin, but sometimes when I get really paranoid I also use phpMyAdmin for Beth's site.

    I'm also interested in the tutorial on how to use it. While I do actually use it, I feel I always make too many changes. :P ( your "sticks out tongue" smiley looks weird).

  11. Barbilee   April 29th, 2008 [gravatar]

    yah i love tryign to find new tuts on wordpress one day i have it down ......... but if you could for me make a tut on how to move stuff to the root folder and so on from a subfolder :)

  12. mae   April 29th, 2008 [gravatar]

    I second Hannah hehe I use its automatic backup and send those zip files in another gmail account :P

  13. Loadx   April 29th, 2008 [gravatar]

    pssh phpmyadmin.
    Just ssh in and mysqldump that sucker :P

  14. Han   April 29th, 2008 [gravatar]

    what I need to find is a way to set up a cronjob to do this autmatically. If of course such a thing is possible! *fingers crossed it is!*

  15. Phil Nash   April 30th, 2008 [gravatar]

    I use a plugin that emails me a database back up once a week. No hassle, no worries.

    I'll go find the link for it if anyone's interested.

  16. Rebecca   May 5th, 2008 [gravatar]

    I've been doing this since day one, but it's good to show everyone else as well. Like you, I don't trust other peoples' tools unless I pour over them with my own eyes (but I still don't use tools). It's just as easy to do it this way. :)

  17. Hev   May 8th, 2008 [gravatar]

    Oh my, Jem. Thank you so much for this. I kept trying to figure this out, & never could make it work. Thanks so much.

  18. Wordpress 2.6 | GuitarAngel.net   July 15th, 2008 [gravatar]

    [...] the following: Your WP database. (Jem explains one [...]

Leave a Reply

No HTML please; first time comments are moderated; comments left without a legitimate first name/nickname and e-mail will be deleted (no, your momma didn't call you "cheap quality wardrobes").

[geek inside avatar]Welcome to the blog of girl geek & php ninja extraordinaire 'Jem'. Web developer, mum and supreme crazy cat lady.. »

---

Post stats

Posted on April 28, 2008 in with 18 comments

---

Related posts

Other posts you might be interested in:

---

Share this post

Talk about this post on your favourite social media website:

tweet this add to stumbleupon add to delicious add to reddit digg this post add to newsvine share on facebook share on friendfeed

---

Subscribe

Like this post? Why not subscribe to the feed?

Knowledge

Pleasure

Archives

See more...