1:在终端下:MySQL -V。 以下是代码片段:
[shengting@login ~]$ MySQL -V
MySQL Ver 14.7 Distrib 4.1.10a, for redhat-Linux-GNU (i686)
2:在MySQL中:MySQL> status;
以下是代码片段:
MySQL> status;
--------------
MySQL Ver 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:在help里面查找
以下是代码片段:
[shengting@login ~]$ MySQL --help grep Distrib
MySQL Ver 14.7 Distrib 4.1.10a, for redhat-Linux-GNU (i686)
4:使用MySQL的函数
以下是代码片段:
MySQL> select version();
+-------------+
version()
+-------------+
3.23.56-log
+-------------+
1 row in set (0.00 sec)
类别:数据库技术 来源:本站原创 作者:hpping 日期:2009-06-24 15:46