How to View mysql version bitsCN.com
How to View mysql version
1: in the terminal: mysql-V. The following is a code snippet:
[Shengting @ login ~] $ Mysql-V
Mysql Verver 14.7 Distrib 4.1.10a, for redhat-linux-gnu (i686)
2: In mysql: mysql> status;
The following is a code snippet:
Mysql> status;
--------------
Mysql Verver 14.7 Distrib 4.1.10a, for redhat-linux-gnu (i686)
Connection id: 416
SSL: Not in use
Current pager: stdout
Using outfile :''
Using delimiter :;
Server version: 3.23.56-log
Protocol version: 10
Connection: Localhost via UNIX socket
Client characterset: latin1
Server characterset: latin1
UNIX socket:/tmp/mysql_3311.sock
Uptime: 62 days 21 hours 21 min 57 sec
Threads: 1 Questions: 584402560 Slow queries: 424 Opens: 59664208 Flush tables: 1 Open tables: 64 Queries per second avg: 107.551
3: search
The following is a code snippet:
[Shengting @ login ~] $ Mysql -- help grep Distrib
Mysql Verver 14.7 Distrib 4.1.10a, for redhat-linux-gnu (i686)
4: use mysql functions
The following is a code snippet:
Mysql> select version ();
+ ------------- +
Version ()
+ ------------- +
3.23.56-log
+ ------------- +
1 row in set (0.00 sec)
BitsCN.com