Mysql檢查版本號的五種方法引見。本站提示廣大學習愛好者:(Mysql檢查版本號的五種方法引見)文章只能為提供參考,不一定能成為您想要的結果。以下是Mysql檢查版本號的五種方法引見正文
檢查版本信息
#1應用敕令行形式進入mysql會看到最開端的提醒符
Your MySQL connection id is 3
Server version: 5.1.69 Source distribution
#2敕令行中應用status可以看到
mysql> status;
--------------
mysql Ver 14.14 Distrib 5.1.69, for redhat-linux-gnu (x86_64) using readline 5.1
Connection id:3
Current database:
Current user: root@localhost
SSL: Not in use
Current pager:stdout
Using outfile:''
Using delimiter:;
Server version:5.1.69 Source distribution
Protocol version:10
Connection: Localhost via UNIX socket
Server characterset:utf8
Db characterset:utf8
Client characterset:utf8
Conn. characterset:utf8
UNIX socket: /var/lib/mysql/mysql.sock
Uptime: 3 days 14 hours 50 sec
Threads: 1 Questions: 5 Slow queries: 0 Opens: 15 Flush tables: 1 Open tables: 8 Queries per second avg: 0.0
#3 應用體系函數
mysql> select version();
+-----------+
| version() |
+-----------+
| 5.1.69 |
+-----------+
1 row in set (0.12 sec)
#4 $ mysql --help | grep Distrib
mysql Ver 14.14 Distrib 5.1.69, for redhat-linux-gnu (x86_64) using readline 5.1
#5 擔保理對象(依據分歧體系 rh系列或則是bsd系列)
$ rpm -qa|grep mysql
qt-mysql-4.6.2-20.el6.x86_64
mysql-server-5.1.69-1.el6_4.x86_64
mysql-libs-5.1.69-1.el6_4.x86_64
mysql-5.1.69-1.el6_4.x86_64
mysql-devel-5.1.69-1.el6_4.x86_64
REF:www.cnblogs.com/end/archive/2011/10/18/2216461.html