查看Mysql 版本的信息

总是忘记 找了一篇总结的  原文在这里

 

1:在终端下:mysql -V:

 

 

[root@*** bin]# mysql -V


mysql  Ver 14.14 Distrib 5.1.48, for unknown-linux-gnu (x86_64) using readline 5.1

 

2:在mysql中:mysql> status:

 

root@localhost:(none) 10:30:25 >status


--------------


mysql  Ver 14.14 Distrib 5.1.48, for unknown-linux-gnu (x86_64) using readline 5.1





Connection id:          115


Current database:


Current user:           root@localhost


SSL:                    Not in use


Current pager:          stdout


Using outfile:          ''


Using delimiter:        ;


Server version:         5.1.50-log MySQL Community Server (GPL)


Protocol version:       10


Connection:             Localhost via UNIX socket


Server characterset:    utf8


Db     characterset:    utf8


Client characterset:    utf8


Conn.  characterset:    utf8


UNIX socket:            /tmp/mysql.sock


Uptime:                 1 hour 57 min 3 sec





Threads: 6  Questions: 9446  Slow queries: 0  Opens: 53  Flush tables: 1  Open tables: 46  Queries per second avg: 1.345


--------------
 

3:在help里面查找

 

[shengting@login ~]$ mysql --help | grep Distrib
mysql  Ver 14.7 Distrib 4.1.10a, for redhat-linux-gnu (i686)
 

4:select version();

 

 

mysql> select version();
+-------------+
| version()   |
+-------------+
| 3.23.56-log |
+-------------+
1 row in set (0.00 sec)
 

 

------- EOF --------------

你可能感兴趣的:(mysql,linux,socket,redhat,unix)