3-step Modification

Source: Internet
Author: User

Hello everyone, I am a newbie who just got started with zhimeng cms. Today I will share with you how to modify the prefix of the zhimeng data table. (If you have just started to build a website, this article will not help you, if your website has been established for more than one month, there will be a lot of data. You need to modify the data table prefix urgently. So this article will help you) Well, I will not talk much about nonsense. Please refer to it. In order to more intuitively reflect the correctness and availability of the method. From the installation dream to the last modification of the data table prefix!

Step 1:

Local test (Figure 1)

 

Figure 2:

  

 

Check whether the data prefix of dede _ is used for installation,

Figure 3

  

 

Figure 4

  

 

Next, modify the data table prefix. Before the modification, we first back up the data. The backup operation process is: website background ------ system ------ database backup/restore ------- and then press submit. Data is stored in the data/backupdata directory by default.

Is the table prefix of dede.

Figure 5:

  

 

Next, modify the table prefix of all txt files under the data/backupdata directory, and change dede _ to the expected table prefix. For example, I changed the table prefix to abcd.

Figure 6

  

 

6. You have changed the table prefix of dede _ to abcd _.

Step 2:

Then open all the txt files in the data/backupdata directory, 7:

Figure 7

  

 

Replace the dede _ table prefix in Figure 7 with, abcd _, 8

Figure 8

  

 

Remember: dede _ involved in all txt files under the data/backupdata directory must be replaced with abcd _. So finding one by one is indeed a great kind of physical activity. Here you can replace experts with texts. Finally, modify the common. inc. php file under the data Directory, find $ export _dbprefix = 'dede _ ', and change dede _ to abcd _. 9

Figure 9

  

 

Step 3:

Check whether the operation is correct. First, upload the data to (data/backupdata). Remember to back up and save the original data so that the data cannot be restored because of the operation!

We use the background -------- system -------- database backup/restoration -------- data restoration -------- to begin data restoration. Waiting for the data DedeCMS prompt! "Data of all files is restored successfully !" This is all done! Let's see if the website can be accessed normally. 10

Figure 10

  

 

Finally, let's check whether the data can be properly backed up. 11

Figure 11

  

 

Everything works. Here, you can modify the prefix of the original data table.

 Note:

In addition, we will find another data table, so don't worry. This is the data we used before. We only need to delete it. 12

Figure 12

  

 

Finally, I would like to remind you that the first operation may be unfamiliar and there may be various possibilities. We recommend that you back up the data to a local device for testing until you perform the correct operation and perform the operation in the space. Remember !!!

I have performed the operation for no less than 10 times and it is normal. This article by (http://www.tea5998.com) original

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.