discuz! X database transcoding scheme and usage tools

Source: Internet
Author: User
Tags serialization

convertdb.php

Placed in the Discuz X series root directory.

1. The configuration information in this file will be read config_global.php.

2, will be the configuration information in the entire database of the tables are converted, if there are multiple applications in a library, you need to be careful to avoid the other tables also go.

3. Use the ALTER TABLE table_name convert to CHARACTER SET charset command to convert.

4, the database is too large possible transcoding process takes a long time, PHP will time out, it is recommended to use the command line to Transcode.

serialize.php Serialization Grooming Tool

In the Web application root directory, which is used after the database is transcoded. At present, the UCHOME2.0 discuz! were made. X2 discuz! X2.5 is compatible with the processing.

Transcoding steps:

1. backing up the database

2, using convertdb.php for database transcoding, this step if you have permission, you can use the command line version of the tool.

3, transcoding after the corresponding version of the program to overwrite the existing program.

4. Change the encoding in the config file (e.g. original $_config[' db ' [' 1 '] [' dbcharset '] = ' GBK ' to $_config[' db ' [' 1 '] [' dbcharset '] = ' UTF8 ')

Note the above, in discuz! X in the configuration file to change the database encoding and output encoding, the output encoding utf8 written as ' utf-8 '

5. Use the serialization finishing tool to organize the serialized fields in the database.

Program Download Https://github.com/rikioy/DiscuzTools/tree/master/DiscuzTranscode

The original was in http://www.discuz.net/thread-3443658-1-1.html,

discuz! X database transcoding scheme and usage tools

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.