View the default encoding of the MySQL database

Source: Internet
Author: User
View the default encoding of the MySQL database. Use the status command to display the relational information of the database, for example: mysqlstatus; ---- mysqlVer14.12Distrib5.0.77, forWin32 (ia32) Connectionid: 1072 Currentdatabase: Currentuser: test@119.119.247.6SSL: NotinuseUsin

View the default encoding of the MySQL database. Use the status command to display the related information of the database. for example: mysql status; ---- mysql Ver 14.12 Distrib 5.0.77, for Win32 (ia32) Connectionid: 1072 Current database: Currentuser: test@119.119.247.6 SSL: Not in use Usin

View the default encoding of the MySQL database

Use the status command to display the relational information of the database, for example:

Mysql> status;
-----
Mysql Ver 14.12 Distrib 5.0.77, for Win32 (ia32)

Connectionid: 1072
Current database:
Currentuser: Test@119.119.247.6
SSL: Not in use
Usingdelimiter: ;
Serverversion: 5.0.67-log MySQL Community Server (GPL)
Protocolversion: 10
Connection: Www.chinajvm.com via TCP/IP
Servercharacterset: Gbk
Db Characterset: Gbk
Clientcharacterset: Latin1
Conn. characterset: Latin1
TCPport: 3306
Uptime: 15 days 2 hours 21 min 37 sec

You can also use the following command:

Mysql> show variables like 'Char % ';
+ --------- + --------------- +
| Variable_name | Value |
+ --------- + --------------- +
| Character_set_client | Latin1 |
| Character_set_connection | latin1 |
|Character_set_database | Gbk |
| Character_set_filesystem | binary |
| Character_set_results | Latin1 |
| Character_set_server | Gbk |
| Character_set_system | Utf8 |
| Character_sets_dir |/Mysql/mastermysql50/share/mysql/charsets/|
+ --------- + --------------- +
8 rows in set (0.03 sec)

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.