zblog php version space, database moving the whole tutorial

Source: Internet
Author: User
Tags aliyun configuration data environment forum hosting how should html

Intermediary trading http://www.aliyun.com/zixun/aggregation/6858.html"> SEO diagnostic Taobao customer hosting technology hall

Zblog forum last night visiting this post when seen: APMSERV build local environment to install ZBLOG PHP, and prepared in the local. Now bought the space, and installed ZBLOG PHP, now want to back up local data and upload to the space, how should backup! See this post, my first reaction is not disguised website to move it, because small series Before moving to my blog for a home, so I have some understanding of this, and then produced the following tutorial, hoping to be able to have the same needs of friends have some help.

For zblog php moving, Xiaobian probably divided into the following types:

The first: only move space or database, that is, only to replace the server space, or just replace the database. In this case, if only the replacement of space, then directly to the original space in the re-upload all the data to the new space, without any changes; if only to replace the database, such as are using the MySQL database, then move To another new MySQL database, this time you need to back up the original database, and then import the new data in the new database, as the case may be on the site some of the configuration files to make the necessary changes, specific changes can refer to the back I said in detail the second type of move.

The second: space, the database is moving, due to space and database have been changed, so when moving to both need to do some new configuration. Here to zblog php as an example, to talk about space in detail, the whole process of moving the database:

Step 1: Download all the data in the original space, but also the data in the original database is exported, it is recommended to use phpmyadmin to export the MySQL database data.

Step 2: Re-upload the original spatial data downloaded from Step 1 to the new space. At this time, you can try to access your website, and you will notice that the database connection error is prompted. Sometimes there will be Some other error message.

Step 3: This step is very important, find the c_option.php file in the zb_users directory, in accordance with the following requirements to modify some of the necessary configuration:

Step 4: After modifying the c_option.php file, re-import the original database back into the new database (it is recommended to use phpmyadmin, export, import operation is very simple, not repeat them here), at this time your website has been generally successful Moving, and if there are some places not, I suggest you carefully check the settings under the background there is no problem.

The third: build a local environment built station, and later wanted to upload to the site space to use. In fact, this type is the same as the second, are the space, all the databases are replaced, but the local into a remote, moving the same way and the second, the reason to count as a type of just Because it involves the local station.

The above method, Xiaobian are tested locally and remotely, true and reliable, if you have problems in the operation, you are welcome to leave a message here. This article by (fiber laser cutting machine http://www.laser568.com) finishing release.

Related Article

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.