- Delete the cache and session files from the Var file in the original Web site file and delete the cached files in media. It then makes all the files into a compressed package to reduce the file volume and facilitate the transfer.
- Transfer the compressed package to the folder that the new server domain name points to, unzip.
- Export Magento database, if using phpMyAdmin export, refer to article: http://www.hellokeykey.com/magento-export-database-via-phpmyadmin/. Note: Look at your database has no table prefix, in the 9th step to write.
- Create a new database in the new space, and import the backed up data file. If it is not in the Magento database using FOREIGN KEY constraints, through the phpMyAdmin import error, add a row on the exported SQL file
SET @[email protected] @FOREIGN_KEY_CHECKS, foreign_key_checks=0;
- Modify the Magento configuration file, location in App/etc/local.xml, note that the content of the modified CDATA is mainly database connection, database user name, password, database name. This file also contains information about the database table prefix, which is renamed and opened to look under.
- Check that the cache and session folders in the Var folder have been emptied.
- Visit your website via the URL and go to the Magento installation page.
- In the completion of the database step, write the 4th step of the new database name, user name, password, table prefix and other information. Note Check that your database has no table prefixes, or Magento will re-establish all the tables.
- After the installation is complete, go to the background to refresh the cache and index management.
- Check the front desk for any anomalies. If some pictures do not display properly, check if a fixed link is used, because the domain name is replaced, causing the picture to be invalid.
- If you modify the domain name, you also need to modify the Magento database, Core_config_data table in the path is Web/unsecure/base_url and web/secure/base_url content, for your site's new domain name, note the domain name behind the “/”。 Replace the website full domain name +/http://www.abc.com/
- Login into the Magento background, enter the system's cache management and index management to refresh the caches, and rebuild the index.
Reference documents
Problems you may encounter when you import a database, you cannot access the home page: There has been an error processing your request
Copy the Magento root directory under/errors/local.xml.sample and name it/errors/local.xml
Change Magento root directory under/lib/zend/cache/backend/file.php
File inside
Protected $_options = Array ( ' cache_dir ' = NULL, ' file_locking ' = = True,
For
Protected $_options = Array ( ' cache_dir ' = ' tmp/', ' file_locking ' = true,
Then create the Tmp folder under the root directory.
Then refresh the foreground, "There have been an error processing your request", there is no error, and then according to the error prompt to find a solution to the answer!
The simple thing is to set a directory for Cache_dir ' tmp/'
Note that this is not to be omitted. Oh: Copy the Magento root/errors/local.xml.sample and name it/errors/local.xml
[References]
Forgot Magento background login username/password
After accessing http://domain.com/admin, I found that I forgot my username and password and forgot my mailbox, so I can modify the password in MySQL table directly.
- Open the phpMyAdmin of your local or space management background
- Go to your Magento database
- Click on the Administrator user table for your Magento database Admin_user
- When you go in, you'll see a table where you can find the line that corresponds to your administrator's username, and click the Edit button that you want to use as a pen.
- Find the Password field, change the string after the value to the password you want, then select MD5 from the drop-down menu in the function, then click the Execute button to OK. Of course, you can also overwrite overrides directly with the MD5 value of your known password. For example, with admin123 this password, his MD5 value is 0192023a7bbd73250516f069df18b500
- Use this to overwrite the MD5 value of your original password, then click the Execute button below.
- Once you're done, you'll be able to log in with your new password, admin123.
Magento Installation and Relocation precautions