Mysql查看版本号的几种方式
投稿:whsnow
这篇文章主要介绍了Mysql查看版本号的五种方式介绍,需要的朋友可以参考下
有时候我们需要查看mysql的版本信息,那么就可以参考下面的方法
1、使用命令行模式进入mysql会看到最开始的提示符
在命令行登录mysql,即可看到mysql的版本号
[root@heyong ~]# mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 487032 Server version: 5.7.17 MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>
或者 mysql-v
2、利用navicat连接mysql的客户端工具可以查看
连接之后右键——详细信息
3、命令行中使用status可以看到
mysql> status -------------- mysql Ver 14.14 Distrib 5.7.17, for linux-glibc2.5 (x86_64) using EditLine wrapper Connection id: 488398 Current database: Current user: root@localhost SSL: Not in use Current pager: stdout Using outfile: '' Using delimiter: ; Server version: 5.7.17 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: 5 days 10 hours 5 min 40 sec Threads: 154 Questions: 15051829 Slow queries: 0 Opens: 37599 Flush tables: 11 Open tables: 1563 Queries per second avg: 32.138 -------------- mysql>
4、利用mysql命令查看
mysql> select version();
+-----------+
| version() |
+-----------+
| 5.7.17 |
+-----------+
1 row in set (0.01 sec)mysql>
5、使用mysql --help | grep Distrib查看
[root@heyong tools]# mysql --help | grep Distrib
mysql Ver 14.14 Distrib 5.7.17, for linux-glibc2.5 (x86_64) using EditLine wrapper
6、包管理工具(根据不同系统 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
到此这篇关于Mysql查看版本号的几种方式介绍的文章就介绍到这了,更多相关Mysql查看版本号内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!