Home > Database > Mysql Tutorial > How can I see how the MySQL database encoding is set?

How can I see how the MySQL database encoding is set?

黄舟
Release: 2017-08-03 11:32:01
Original
2848 people have browsed it

Different languages ​​have different encoding methods. When different encoding methods interact, sometimes garbled characters will appear. At this time, we need to modify the encoding information to achieve the adaptation effect.

Method 1;

1. Open the mysql command terminal and enter the login password for verification

How can I see how the MySQL database encoding is set?

2. Verification is successful, enter show create database day15; and click Enter (day15 is the database name)

How can I see how the MySQL database encoding is set?

3. You can see the current query database encoding information in the information bar below.

How can I see how the MySQL database encoding is set?

4. If you need to modify the encoding information, you can enter alter database day15 default character set gbk; click Enter.

How can I see how the MySQL database encoding is set?

#Method 2;

1. Open the third-party database management software, find the encoding information database you want to view, right-click and select [Change Database]

How can I see how the MySQL database encoding is set?

##2. In the change operation bar, you can see the default encoding information of the current database

How can I see how the MySQL database encoding is set?

3. Click the drop-down menu to modify the database encoding method.

How can I see how the MySQL database encoding is set?

The above is the detailed content of How can I see how the MySQL database encoding is set?. For more information, please follow other related articles on the PHP Chinese website!

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