How can I configure the my. ini file when xampp is installed? High score?

Source: Internet
Author: User
After xampp is installed, how to configure the my. ini file and ask for high scores. When I first came into contact with php, I found that my. ini was missing a lot. now I want to modify the default encoding. The default encoding is as follows: mysql & gt; showvariableslike 'char % '; + -------------- when xampp is installed, ask how to configure the my. ini file.
When I first came into contact with php, I found that my. ini was missing a lot. now I want to modify the default encoding. The default encoding is as follows:

Mysql> show variables like 'char % ';
+ -------------------------- + ---------------------------------- +
| Variable_name | Value |
+ -------------------------- + ---------------------------------- +
| Character_set_client | gbk |
| Character_set_connection | gbk |
| Character_set_database | latin1 |
| Character_set_filesystem | binary |
| Character_set_results | gbk |
| Character_set_server | latin1 |
| Character_set_system | utf8 |
| Character_sets_dir | C: \ xampp \ mysql \ share \ charsets \ |
+ -------------------------- + ---------------------------------- +
8 rows in set (0.00 sec)

I want to change the default values of gbk and latin1 to utf8.

------ Solution --------------------
Add the following content to the mysqld quota group:
Default-character-set = utf8;

Or you can set names utf8 each time.
------ Solution --------------------
Default_character_set = utf8

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.