Mysql error message language setting_mysql

Source: Internet
Author: User
When I set the Mysql error message language to operate the database today, the mysql error return statement always reports non-English language, which is a bit confusing and easy to guess, the complexity will be hard to understand. The following is a simple example:

[Err] 1064 - Erreur de syntaxe près de '2' à la ligne 1

So I searched a lot of information on the Internet and almost couldn't find the relevant information. I finally found a piece of information that was related to mysqld.

Finally, I found many language packs in the "share/" directory under the mysql installation directory.

Open my. ini and find

[mysqld]port=3306explicit_defaults_for_timestamp = TRUE

Find the [mysqld] Node and add the following sentence below

language=d:/wamp/bin/mysql/mysql5.6.17/share/english

Then restart

OK.

[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2' at line 1


Note:

d:/wamp/bin/mysql/mysql5.6.17/share/english

The directory path must be written as/. mysql cannot be started because of the write direction at the beginning.

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.