Mysql查看当前版本和运行状态\s

[code]mysql> \s

mysql Ver 14.12 Distrib 5.0.67, for redhat-linux-gnu (x86_64) using readline 5.1

Connection id: 2913438
Current database:
Current user: [email protected]
SSL: Not in use
Current pager: stdout
Using outfile: ‘’
Using delimiter: ;
Server version: 5.0.67-community-log MySQL Community Edition (GPL)
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1
UNIX socket: /var/lib/mysql/mysql.sock
Uptime: 5 days 20 hours 32 min 16 sec

Threads: 6 Questions: 154650254 Slow queries: 6371 Opens: 226599 Flush tables: 1 Open tables: 16384 Queries per second avg: 305.672

mysql>[/code]