Use MySQL to link to myeclipse with garbled characters

Source: Internet
Author: User

If you use MySQL to link to myeclipse, you will encounter garbled code. I think this is also a problem that many people have encountered. Next I will explain how to solve these garbled code problems,

First, MySQL can be properly displayed, but it is linked to myeclipse to establish a dbbrowser, right-click connected to MySQL, and click New SQL editor to view the contents in the table, garbled characters, this may be caused by the MySQL encoding configuration. Make the following changes and find the MySQL configuration folder my. ini.

[Client]

Port = 3306

[MySQL]

Default-character-set = GBK // This is the place to change. Someone may be Latin1

# Server section
#----------------------------------------------------------------------
#
# The following options will be read by the MySQL server. Make sure that
# You have installed the server correctly (see above) So it reads this
# File.
#
[Mysqld]

# The TCP/IP Port the MySQL server will listen on
Port = 3306

# Path to installation directory. All paths are usually resolved relative to this.
Basedir = "E:/MySQL sever /"

# Path to the Database Root
Datadir = "E:/MySQL sever/data /"

# The default character set that will be used when a new schema or table is
# Created and no character set is defined
Default-character-set = utf8 // This is the MySQL local character access. Someone needs to change it to Latin1.

 

After modification, go to the control panel service to first turn off the MySQL service and then restart (this is very important), and then delete the original encoded table, so as to create a new table, there will be no garbled characters in myeclipse

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.