使用status命令能够显示数据库的相关系信息,示例如下:
mysql> status;
————–
mysql Ver 14.12 Distrib 5.0.77, for Win32 (ia32)
Connection id:
Current database:
Current user:
SSL:
Using delimiter:
Server version:
Protocol version:
Connection:
Server characterset:
Db
Client characterset:
Conn. characterset:
TCP port:
Uptime:
也可以使用如下命令:
mysql> show variables like’char%’;
+————————–+——————————————–+
| Variable_name
+————————–+——————————————–+
| character_set_client
| character_set_connection | latin1
|
| character_set_filesystem | binary
| character_set_results
| character_set_server
| character_set_system
| character_sets_dir
+————————–+——————————————–+
8 rows in set (0.03 sec)