mysql 查看版本号

方法一:

 [root@mailtest mysql]# mysql -V
mysql  Ver 14.14 Distrib 5.5.11, for Linux (i686) using  EditLine wrapper

 

 

方法二:

mysql> \s
--------------
/home/coremail/mysql/bin/mysql  Ver 14.14 Distrib 5.5.11, for Linux (i686) using  EditLine wrapper

Connection id:          10197
Current database:
Current user:           coremail@localhost
SSL:                    Not in use
Current pager:          stdout
Using outfile:          ''
Using delimiter:        ;
Server version:         5.5.11 Source distribution
Protocol version:       10
Connection:             127.0.0.1 via TCP/IP
Server characterset:    latin1
Db     characterset:    latin1
Client characterset:    gbk
Conn.  characterset:    gbk
TCP port:               3308
Uptime:                 23 days 16 hours 34 min 42 sec

Threads: 27  Questions: 7222558  Slow queries: 1  Opens: 147  Flush tables: 1  Open tables: 139  Queries per second avg: 3.528
--------------

mysql>

 

你可能感兴趣的:(mysql,mysql版本号)