您的位置:首页 > 数据库 > MySQL

查看mysql版本的四种方法

2013-11-08 13:26 441 查看
1:在终端下:mysql -V。
[root@edb2 ~]# mysql -V
mysql Ver 14.12 Distrib 5.0.22, for unknown-linux-gnu (x86_64) using readline 5.0

2:在mysql中:mysql> status

mysql> status;
--------------
mysql Ver 14.12 Distrib 5.0.22, for unknown-linux-gnu (x86_64) using readline 5.0

Connection id: 66587
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.0.22-max-log
Protocol version: 10
Connection: Localhost via UNIX socket
Client characterset: latin1
Server characterset: latin1
UNIX socket: /tmp/mysql.sock
--------------
3:在help里面查找
[root@edb2 ~]# mysql --help | grep Distrib
mysql Ver 14.12 Distrib 5.0.22, for unknown-linux-gnu (x86_64) using readline 5.0

4:使用mysql的函数
mysql> select version();
+----------------+
| version() |
+----------------+
| 5.0.22-max-log |
+----------------+
1 row in set (0.01 sec)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: