XAMPP MySQL under the Chinese is garbled

Source: Internet
Author: User

Http://www.2cto.com/database/201204/126775.html

Apache 80 ports are occupied

MySQL 3306 Port is occupied

The solution of MySQL Chinese garbled problem under XAMPP

Symptom Description: The MySQL database is built-in after the installation is complete XAMMP.  Create your own database---a new database table--add Chinese records to the table using JDBC---all the Chinese stored into garbled characters. www.2cto.com Problem Solving: 1. Locate the D:\xampp\mysql\bin\my.ini in the installation directory, open: 2, locate the tag [mysqld] and Mark [MySQL] 3, Add the encoding configuration information separately under these 2 tags: DEFAULT-CHARACTER-SET=GBK modified as follows: INI code [mysql] no-auto-rehash default-character-set=gbk www.2cto.c Om INI code [mysqld] port= 3306 CHARACTER-SET-SERVER=GBK 4, after the modification is complete, restart the MySQL database.   5, delete the old database, and create a new database, the new database can support the Chinese. Author huangqiqing123

XAMPP MySQL under the Chinese is garbled

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.