《Mysql实例查看mysql版本的4种方法》要点:
本文介绍了Mysql实例查看mysql版本的4种方法,希望对您有用。如果有疑问,可以联系我们。
导读:1:在终端下:mysql -V 查看mysql版本.
[root@jbxue ~]$ mysql -Vmysql Ver 14.7 Distrib 4.1.10a, for redhat-linux-gnu (i68...
1:在终端下:mysql -V 查看mysql版本.
MYSQL数据库
[root@jbxue ~]$ mysql -V
mysql Ver 14.7 Distrib 4.1.10a, for redhat-linux-gnu (i686)
2:在mysql中:mysql> status;
MYSQL数据库
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里面查找
MYSQL数据库
[root@jbxue ~]$ mysql --help | grep Distrib
mysql Ver 14.7 Distrib 4.1.10a, for redhat-linux-gnu (i686)
4:使用mysql的函数
MYSQL数据库
mysql> select version();
+-------------+
| version() |
+-------------+
| 3.23.56-log |
+-------------+
1 row in set (0.00 sec)
转载请注明本页网址:
http://www.vephp.com/jiaocheng/6474.html