Mysql error message encoding problem

WBOY
Release: 2016-10-12 10:04:07
Original
982 people have browsed it

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.

Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!