当前位置: 首页 > MySQL数据库

如何查询mysql的版本号

时间:2026-01-28 14:09:51

本教程操作环境:linux5.9.8系统、mysql 5.7.17版本、Dell G3电脑。

查看mysql的版本号

1、在命令行登录mysql,即可看到mysql的版本号

[root@heyong ~]# mysql -uroot -pEnter password: Welcome to the MySQL monitor.  Commands end with ; or \g.Your MySQL connection id is 487032Server 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 itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>

2、利用navicat连接mysql的客户端工具可以查看

连接之后右键——详细信息

3、利用mysql命令查看

mysql> select version();+-----------+| version() |+-----------+| 5.7.17    |+-----------+1 row in set (0.01 sec)mysql>

4

4、在命令行使用status查看

mysql> status--------------mysql  Ver 14.14 Distrib 5.7.17, for linux-glibc2.5 (x86_64) using  EditLine wrapperConnection id:        488398Current database:    Current user:        root@localhostSSL:            Not in useCurrent pager:        stdoutUsing outfile:        ''Using delimiter:    ;Server version:        5.7.17 MySQL Community Server (GPL)Protocol version:    10Connection:        Localhost via UNIX socketServer characterset:    utf8Db     characterset:    utf8Client characterset:    utf8Conn.  characterset:    utf8UNIX socket:        /tmp/mysql.sockUptime:            5 days 10 hours 5 min 40 secThreads: 154  Questions: 15051829  Slow queries: 0  Opens: 37599  Flush tables: 11  Open tables: 1563  Queries per second avg: 32.138--------------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

上一篇:如何使MySQL的索引更高效
下一篇:oracle与mysql有哪些区别
mysql
  • 英特尔与 Vertiv 合作开发液冷 AI 处理器
  • 英特尔第五代 Xeon CPU 来了:详细信息和行业反应
  • 由于云计算放缓引发扩张担忧,甲骨文股价暴跌
  • Web开发状况报告详细介绍可组合架构的优点
  • 如何使用 PowerShell 的 Get-Date Cmdlet 创建时间戳
  • 美光在数据中心需求增长后给出了强有力的预测
  • 2027服务器市场价值将接近1960亿美元
  • 生成式人工智能的下一步是什么?
  • 分享在外部存储上安装Ubuntu的5种方法技巧
  • 全球数据中心发展的关键考虑因素
  • 英特尔与 Vertiv 合作开发液冷 AI 处理器

    英特尔第五代 Xeon CPU 来了:详细信息和行业反应

    由于云计算放缓引发扩张担忧,甲骨文股价暴跌

    Web开发状况报告详细介绍可组合架构的优点

    如何使用 PowerShell 的 Get-Date Cmdlet 创建时间戳

    美光在数据中心需求增长后给出了强有力的预测

    2027服务器市场价值将接近1960亿美元

    生成式人工智能的下一步是什么?

    分享在外部存储上安装Ubuntu的5种方法技巧

    全球数据中心发展的关键考虑因素