Dedecms space migration steps

Source: Internet
Author: User
Tags vps server wordpress blog
This article provides a detailed analysis of dedecms space migration steps. For more information, see section 1. re-install DEDECMS of the original version in the new space, and then put all the data of the old station. The data here refers to files, that is, all the files except the configuration file config_base.php under the root directory folder include overwrite the new space.

2. in the old website background system management-where to back up data for data backup, the data here refers to the backup file adopted by DEDECMS's own background, similar to the backup using phpmyadmin and other tools. After the backup is complete, DEDECMS will put the backup file in the dede directory under the root directory (the default value is dede. if you modify it, it is the directory you modified) in the backup_data folder, you will find many text files.

3. open the background on the new website (note: the domain name has been resolved to the new site). choose system management> data backup> data restoration> restore data to restore data directly.

Note: when backing up data, you must specify the backup data format. you must consult the new space provider in advance and decide whether to select 3.x/ 4.0.x or 4.1.x/5. version x. Otherwise, the backup is wrong and the old website cannot go in again. please wait and cry! O (Partition _ partition) o ..

First, move between space and space

In fact, it is most convenient to move between a space and a space. you have mastered the steps I have mentioned and can successfully move to the DEDE background in 100%, select system-database backup-select all-and click "Start". the corresponding version of your database must be the same as that of the new database. otherwise, garbled characters may occur. After a while, you will be prompted that all the data has been backed up. depending on the size and time of your database, after the backup is complete, you can open the FTP on your website and check that there are txt files in the data \ backupdata directory, this is the data we just backed up. if you are not sure, you can check the file creation date. Download the backupdata folder together with the content to the local device. continue, and download all the four folders images, templets, uploads, and plus to the local device. Finally, we will re-install the DEDE program in the new space, corresponding to your version. after installation, we will overwrite these folders to the root directory, go to the background, select system-database restore-data restore, you will see your database information. after selecting all the information, click start to restore the data. after that, you will be finished. Then, select your home page file and update the home page. in this way, our space migration is complete.

Second, how can I migrate a backup database?

For various reasons, our backend cannot be moved in, or the database cannot be backed up. how can I migrate it? First, we use PHPMYADMIN to access the SQL database. if this happens, we should select your database and back up the database and export it to the local machine, then download all the files in your original space to your new space, and continue typing common in the data folder. inc. modify the password and IP address of your new database account in php, and overwrite the IP address. this is fine, but it is not suitable for Cainiao to use this method unless you really cannot, we recommend the first migration method. this method may be a little less problematic. my website moved from the space to the VPS server yesterday. in this way, the background cannot be updated, but it quickly solved the permission issue.

As a website, the domain name generally has little change in ability, but the space may be transferred. The transfer involves the migration of website data. There are many ways to start a website built with Dedecms, but there are only one or two effective methods.

Because Dedecms is compiled using PHP and requires a MYSQL database to support a website, the WEB page area and the data warehouse area are generally not in the same place, unlike Copan, ZBLOG, Saite, and xincloud compiled by ASP, WEB pages and ACCESS databases exist together and can be relocated on the entire site.

However, if you have used the Wordpress blog program, you can understand that the web page written by the PHP program is opened faster than ASP, but the static generation effect is not as good as ASP. What makes people happy is that Dedecms, a dream management system, can achieve static article addresses, which is really commendable.

In addition, the website created by Dedecms can also be relocated on the entire site,The method is as follows:

1. log on to your DEDECMS background, find "database backup/restore" in the "system" area, and "back up" the database ";

2. download all the files in the old space to your computer;

3. upload the file to the new space;

4. install the DEDECMS system in the new space. the method is to download a new installation system from the official website of Zhimeng, and upload the "install" folder in the system to the space for overwriting. Next, run http: // your domain name/install to install it. Note that the database table prefix must be consistent with the original database table prefix (by default );

5. after installation, log on to the background and click "database backup/restore" in the "system" area to restore the data ";

6. data generation and migration are completed.

Of course, there is also a way to prevent Wordpress blog migration:

1. download the files in the old space to the local machine and back up MYSQL to the local machine using PHPADMIN;

2. Upload the website file to the new space, and the database is imported through PHPADMIN;

3. modify the database name and password entered during dede installation: open config_base.php in the "include" directory and download the file.

Find "database connection information" and change the following parameters (database name and password) to overwrite the data.

4. migration is complete.

For which method is the best, you can see your benevolence and wisdom. Here, we would like to remind you that if your website's mysql database exceeds 20 MB, you 'd better adopt the first method (also called the reinstallation method) above ), because the size limit (generally not greater than 20 MB) is set for database import by some space vendors, this restriction can be avoided by reinstalling the method.

DedeCms migration instructions-official tutorials are detailed enough

Because the names of mysql databases in different VM spaces are different (because their prefixes are different, you will know when they are used ),

Therefore, you must first back up the database, restore it in the new space, and then regenerate html.

(Note: The version of the new space and the MYSQL database on the original site must be 4.1 or above, or 4.0 or below, to avoid problems. You can log on to PHPMyAdmin to view the version)

When the dedecms system of the same version is re-installed in the new space,

The database name and database username and password are of course new databases,

The prefix of the configured database table must be the same as that of the original database table to avoid content loss.

The details are as follows:

1. log on to the background and back up the database (this database backup file is saved in ../dede/backupdata/), and remember the username and password for logging on to the background.

2. download the database backup file (I .e .. /dede/backupdata/This folder), website style template file (I .e .. /templets/This folder), and .. /upimg/This folder (this is the folder that saves all uploaded files ).

3. reinstall the dedecms system of the same version in the new space. in this case, the prefix of the database table must be consistent with that of the original database table to avoid content loss.

(The database name and database username and password are of course new databases)

4. upload the original site .. /dede/backupdata/and .. /templets/and .. /upimg/these three folders overwrite the corresponding folders in the new space, so that the original site database backup files and website style templates are placed on the new site.

5. log on to the background of the new space and choose System Settings> database management> database restoration to restore the database. Then, set "modify system parameters" (or "system variable configuration") for the website "), generate html for the whole site.

After the database is restored, the user name and password used to log on to the background of the original website must be backed up.

The default character encoding of mysql databases in different spaces is different. to prevent garbled characters, you can check the original encoding (usually latin or gbk) when backing up the old database ), when restoring the database, check whether the new database supports your encoding (some databases do not support gbk). If you support the same encoding after recovery, no garbled code will occur.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.