Here it is, step by step:
- download XAMPP EXE installer (http://www.apachefriends.org/en/xampp-windows.html)
- install to a folder of your choice (I used c:\personal)
- XAMPP will be installed into c:\personal\xampp
- You will be asked some questions at the command line, choose as you wish... the final prompt will be a menu. Choice #1 is start control panel (1. start XAMPP Control Panel) or you can start via the Start>All Programs>XAMPP menu.
- type 1 and enter to start control panel
- start mysql (unblock if windows prompts)
- start apache (unblock if windows prompts)
- click the admin button next to mysql (this will open a new browser window)
- download WinSCP
- you may have to configure FTP or SSH access with your webhost
- connect to your domain name with username/pass and download your wordpress files
- copy these files to ${XAMP__INSTALL_DIR}\htdocs
- Open wp-config.php
- Note down the username and password and database name
Exporting the DB
- Open PHPMyAdmin for your Webhost
- Select the database
- Select the Export tab
- Select the option to ZIP your export
- Select the option to export as SQL inserts
- Press Go
Creating a New DB and User
- Open PHPMyAdmin for your XAMPP install by pressing the Admin button in XAMPP control panel for MySQL
- At the top of the page, click the server level link
- Click the Privileges tab
- Click (in the middle of the page) Add a new User
- use same values for username,pass as your webhost
- Select the radio button "create database with same name and grant all privileges"
- Click "Go"
- Open PHPMyAdmin for your XAMPP install by pressing the Admin button in XAMPP control panel for MySQL
- Click the databases tab
- Click your database
- Go to import tab
- Choose file, find the ZIP file you downloaded earlier
- Click "Go"
Voila!
Here's how to create a DB without creating a user (though you'll have to sort out all the grants then!)
Near the bottom of the PHPMyAdmin page is 'Create new database'
Type in the name of the database your webhost has configured
Leave the drop down set to 'Collation'
Press create
No comments:
Post a Comment