Home  >  Article  >  Database  >  查看MySQL数据库的默认编码

查看MySQL数据库的默认编码

WBOY
WBOYOriginal
2016-06-07 15:53:131312browse

查看MySQL数据库的默认编码 使用status命令能够显示数据库的相关系信息,示例如下: 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

查看MySQL数据库的默认编码

使用status命令能够显示数据库的相关系信息,示例如下:

mysql> status;
————–
mysql Ver 14.12 Distrib 5.0.77, for Win32 (ia32)

Connection id:          1072
Current database:
Current user:           test@119.119.247.6
SSL:                    Not in use
Using delimiter:        ;
Server version:         5.0.67-log MySQL Community Server (GPL)
Protocol version:       10
Connection:             www.chinajvm.com via TCP/IP
Server characterset:    gbk
Db     characterset:    gbk
Client characterset:    latin1
Conn. characterset:    latin1
TCP port:               3306
Uptime:                 15 days 2 hours 21 min 37 sec

也可以使用如下命令:

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           

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