How to configure Wamp under MySQL code

Source: Internet
Author: User
Tags mysql code

Windows Apache+mysql/mariadb+perl/php/python, a group of open-source software used to build dynamic Web sites or servers, are themselves separate programs, but because they are often used together, they have a higher degree of compatibility, Together make up a powerful Web application platform. This article describes how to set up the MySQL encoding under Wamp.

Tools/Materials
    • Wamp
    • Text editing tools, we recommend using Subline
Method/Step
  1. Open Wamp, click the Small green icon that appears in the lower-right corner of the Wamp startup, and then select MySQL console next to MySQL to open the MySQL command-line window.

  2. Enter your MySQL password in the Black command-line window and enter MySQL.

    Input command: Show variables like '%char% ';

    Check out the code for MySQL now.

  3. In the result of the above command we can see the installation directory of Wamp, find this directory, in the MySQL directory to select the My.ini, that is, the MySQL configuration file. Of course, you can also click on the Wamp to launch the green icon, choose MySQL under the My.ini. However, you cannot choose how to open it, only with the Windows default text Editing tool.

  4. Find [MySQL] in the config file, add: Default-character-set=utf8. This is the encoding that is configured at client input.

  5. Find [mysqld] and join: Default-character-set=utf8, which is the encoding for configuring the MySQL server.

  6. For [client], join Default-character-set=utf8, which is the encoding for setting up the Wamp client.

  7. After the configuration is completed, restart Wamp, and then open the command-line window, enter: Show variables like '%char% '; command to see if the encoding settings were successful.

How to configure the code for MySQL under Wamp

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.