Home > Database > Mysql Tutorial > body text

Mysql错误消息 语言设置_MySQL

WBOY
Release: 2016-06-01 13:11:07
Original
1066 people have browsed it

今天操作数据库的时候,mysql错误返回语句 ,一直报的是非英语的语言 ,百般纠结 ,简单的还大致能猜出意思 , 复杂了就会实在看不懂的 ,举个简单的如下:

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

于是在网上搜了好多资料 ,几乎搜不到相关的信息, 后来终于找到一篇信息里提到 ,说是与mysqld相关

最后在mysql安装目录下 果然找到share/目录下 有许多的语言包

于是打开my.ini 找到

[mysqld]port=3306explicit_defaults_for_timestamp = TRUE
Copy after login

找到[mysqld]节点 在下面加上下面这句

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

然后重启

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
Copy after login


注 : 

d:/wamp/bin/mysql/mysql5.6.17/share/english
Copy after login

目录路径一定要写成 / , 开始的时候写的方向的 , mysql就无法启动了 

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template