Solve Chinese garbled characters After Godaddy restores the MySQL database

Source: Internet
Author: User
Tags mysql backup
1. Open the backed up SQL text in notepad to ensure that the data in the file is properly displayed. 2. view the storage format of this text, typically ANSI (Chinese generally GBK or gb2312) and UTF-8.3. if the file storage format is ANSI, add the following statement at the top of the SQL file :/*! 40101 set names GBK */; if the file storage format is UTF-8, add the following statement at the top of the SQL file :/*! 40101 set names utf8 */; 4. Save the settings and use the modified SQL file to restore the MySQL database.

 

My MySQL backup files are too large, and over 300 m, ultraedit, and editplus are difficult to handle. The results are handled by using winhex to directly modify the SQL file header.

 

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.