How to Change Magento Base Cart Domain Name?

For example, the old domain name is:, and this shopping cart is based on magento. Now I need to remove the cart to my local computer, say under How to then?

1. Creat glassespeople, under;
2. Copy all files under, and paste them under;
3. Login phpmyadmin of, and export the database of;
4. Login phpmyadmin of, and import the database;
5. Edit old URL values in database —>Table: core_config_data
change its old value to
change its old value to

6. Modify the old mysql connection data to the new one:
Edit app/etc/local.xml under Magento root, and change related data


7. Edit ajexconnection.php under Magento root, and change related data.

8. Login admin panel, and go to systemn –> Cache Storage Management, refesh old cache.
If you do not remember admin passwords, the go to phpmyadmin, and edit table admin_user, just replace the old enscripted password to 0192023a7bbd73250516f069df18b500, then the new password would be admin123.

You also can run sql command to generate a new password:

UPDATE `admin_user` SET `password` = MD5(‘PASSWORD’) WHERE `username` = ‘USERNAME’;

For example, if your username was admin and your wanted to reset the password to abcdefg111, I would do this:
UPDATE `admin_user` SET `password` = MD5(‘abcdefg111’) WHERE `username` = ‘admin’;