The problem of MySQL garbled in phpadmin

Source: Internet
Author: User

Execute the following statement at once

Show VARIABLES like ' character_% ';  Set Character_set_server=utf8;  Show full columns from t_org;  Show table status from HrpA like '%t_% '; Show CharSet;

Found the table basically no problem, can also echo UTF8, the result of inserting data is the same?? Such a garbled.

Last entry

My.ini

[MySQL] no-auto-rehash default-character-set = UTF8

[Mysqld] port=3306 Default-character-set=utf8 default-storage-engine=innodb

And then into the corresponding database configuration file

Db.opt

File contents

Default-character-set=utf8 Default-collation=utf8_general_ci

Originally did not add the default character encoding, that is, with the set named restart is also garbled. The problem is over.

Transferred from: http://blog.csdn.net/apollo_ts/article/details/5389801

The problem of MySQL garbled in phpadmin

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.