Home  >  Article  >  Backend Development  >  Mysql error message encoding problem

Mysql error message encoding problem

WBOY
WBOYOriginal
2016-10-12 10:04:07955browse

Mysql error message encoding problem

Why is the encoding of my error message so weird? . .
Didn’t I already set it to UTF8?

Reply content:

Mysql error message encoding problem

Why is the encoding of my error message so weird? . .

Didn’t I already set it to UTF8?

Error: 1007 SQLSTATE: HY000 ( ER_DB_CREATE_EXISTS ). Message: Can't create database '%s'; database exists.

I guess the operating system language setting is wrong, or the mysql running language setting is wrong.

The utf8 you set is the database encoding format, not the client.

It is equivalent to using a Chinese browser to open a Japanese website. The website encoding is in Japanese, but your browser interface is still in Chinese.

Check the configuration file of mysql-client, or the operating system language environment.

Statement:
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