首页 >数据库 >mysql教程 > 正文

怎么查看mysql版本

原创2020-06-09 15:23:0101708

查看mysql版本的方法:

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

[root@heyong ~]# mysql -uroot -p
Enter 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 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>

1.png

2.利用mysql命令查看

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

1276909-20181030113514956-1245688262.png

3.使用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

1276909-20181030115226941-575912665.png

推荐教程: 《mysql教程

以上就是怎么查看mysql版本的详细内容,更多请关注php中文网其它相关文章!

php中文网最新课程二维码

声明:本文原创发布php中文网,转载请注明出处,感谢您的尊重!如有疑问,请联系admin@php.cn处理

  • 相关标签:mysql
  • 相关文章

    相关视频


    网友评论

    文明上网理性发言,请遵守 新闻评论服务协议

    我要评论
  • 专题推荐

    推荐视频教程
  • 极客学院mysql视频教程极客学院mysql视频教程
  • MySQLi面向过程极速入门MySQLi面向过程极速入门
  • Apache和MySQL安装使用教程Apache和MySQL安装使用教程
  • MySql参考手册MySql参考手册
  • 视频教程分类