WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to switch a WordPress site from a wamp localhost to xampp localhost. Using the Tools > Export, I saved the WordPress content to an XML file. I did not create a similar backup of the MySQL databases (and won't be able to) but have all the files from wamp.

How can I make this transfer without having to install a new version of WordPress? There are important settings in widgets and plugins that I need preserved. I am looking to place the relevant wamp and WordPress files in the correct xampp and WordPress folders.

Thanks in advance.

share|improve this question
2  
I don't know where WAMP and XAMPP keeps the actual database files, but you can move those files from one LAMP install to another. I assume the same is true for moving between WAMP and XAMPP, but I don't know for sure. However, this is off-topic here per the faq. Try Server Fault or Stack Overflow maybe. – s_ha_dum Feb 21 '13 at 17:01

The easiest thing by FAR is going to be to fire up MAMP again, create a MySQL dump of the database from phpmyadmin, and then import that into your new XAMP database through phpmyadmin.

If you can't do that, it might still be doable, but will be more work and confusing... I never got it to work right trying copying the files from one folder to the other.

share|improve this answer
  1. login to localhost/phpMyAdmin and create dump of your DB
  2. Configure XAMPP and install clean Wordpress
  3. Import dump of your old DB to new Wordpress
  4. Change site_url and 'homeinwp_options` table
  5. Copy all your plugins from plugins folder and themes from themes folder
  6. Copy all uploaded files from `uploads' folder
  7. Check if everything goes well.

Those points are general but maybe you'r site will need some custom tweaks after migration...

share|improve this answer

I highly recommend using the following plugin for the process of duplicating a WordPress site from one server to another (WAMP to XAMPP).

Duplicator https://wordpress.org/plugins/duplicator/

It'll package up the entire site, core and all. Provides you a Zip and a Installer. You then simply copy the Zip and Installer PHP file to the other server, access it via the URL and it'll unzip everything, and also connect to the database you've set-up (it'll ask you for the DB details) (whether empty or full) and re-build everything with the appropriate changes such as new base URL etc.

share|improve this answer

install updraftplus in the main site and make a backup. download all those files. install updraftplus in localhost site. put the downloaded files in updraftplus folder of the local install. The software will recognize the backup and you can restore it. everything will work without a single option missing. if software doesnot prompt you to change the url, do it manually by changing site_url and home dir in wp_options table.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.