• Home
  • Blog
  • Donate
  • WordPress Plugins
  • EMail Contact
  • Support Forum

Subscribe to
Stuff @ Yellow Swordfish

Recent Forum Posts

Latest Forum Posts

Fixed my permalink issue - thought I'd share
RoseCitySister in Simple:Press Forum Version 3.0 to 3.1.2
on 6 Jul 2008 - 9:41 am
How do I write a post?
danstorey in Simple:Press Forum - Next Version
on 5 Jul 2008 - 10:30 pm
Show latest post on homepage
Mr Papa in Simple Forum Version 2.1
on 5 Jul 2008 - 3:25 pm
Forum in Spanish, how ?
Yellow Swordfish in Simple:Press Forum Version 3.0 to 3.1.2
on 4 Jul 2008 - 4:20 pm
Czech language
Yellow Swordfish in Simple:Press Forum Version 3.0 to 3.1.2
on 4 Jul 2008 - 4:18 pm
How to change page redirect after registration?
Yellow Swordfish in Simple:Press Forum Version 3.0 to 3.1.2
on 4 Jul 2008 - 9:24 am
Move Post to Existing Topic
Yellow Swordfish in Simple:Press Forum Version 3.0 to 3.1.2
on 4 Jul 2008 - 12:27 am
Sidebar Sub-Page Links?
Yellow Swordfish in Sub-Page Links
on 3 Jul 2008 - 6:22 pm

On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins

  • Site Plugins
    • Simple:Press Forum
    • Enlarger
    • Paged Navigation
    • Sub-Page Links

  • Admin Plugins
    • Click Tags
    • Admin Drop Down Menus
    • Download Counter 'Lite'
    • Download Counter 'Advanced'
    • Page Category Plus
    • Post/Page Update Notification

Articles

  • Articles
    • WordPress Tips #1
    • Caring For Your Database
    • Creating Custom Page Templates
    • Installing WordPress On Your Apple Mac

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

Cloning The Database
  • Installing WordPress On Your Apple Mac
  • The Apache Web Server
  • The PHP Processor
  • The MySQL Database Engine
  • The Websites
  • Installing WordPress
  • → Cloning The Database

Cloning the Database

Making a copy of your public database and getting it up and running on your local website is extremely easy and straightforward - providing that the table prefix on both systems is the same.

The method I use which is both quick, easy and straightforward is via the excellent phpMyAdmin plugin for WordPress and involves just a few easy steps. if you don’t have this plugin, download it and install it - it is an invaluable tool.

  1. Open the phpMyAdmin plugin page in your public sites admin pages.
  2. Select the ‘Export’ option from the list near the top.
  3. When the export screen displays, click on ‘Select All’ underneath the list of tables and ensure the ‘SQL’ option is set.
  4. Ensure both the ‘Structure’ check box is checked and also check the option ‘Add DROP TABLE’
  5. Ensure that the ‘Data’ checkbox is checked.
  6. Check the ‘Save as File’ box, select your preferred compression and click on ‘Go’.

The resultant file contains all of the data of your public site along with the table definitions required to recreate the database.

Next, unzip the file and load it up in your plain text editor. Once again TextWrangler is an ideal tool for this task.

All you are going to do with this file is a global find and replace. Using my own site as an example once again I search on:

www.yellowswordfish.com

and replace all with:

www.yellowswordfish.dev

and save the file. Once saved it is also worth zipping it as some versions of phpMyAdmin only work with a compressed file.

  1. Now open your local site in admin mode and navigate to the local copy of the phpMyAdmin plugin.
  2. Select ‘Import’ from the row of options near the top.
  3. Supply the location of your edited and zipped database file.
  4. Click on ‘Go’.

Once again, if all has gone without hitch, when you reopen your local site you will have a carbon copy of your public site.

And don’t forget, you can repeat this procedure whenever you want to keep your local system up to daye with your public site.

Yellow Swordfish is © 2005-2008 by Andy Staines. All rights reserved.
The work is licensed under a Creative Commons Attribution-ShareAlike 2.0 England & Wales License.
Yellow Swordfish uses Wordpress