怎么查看mysql版本

互联网 20-6-9

查看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>

2.利用mysql命令查看

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

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

推荐教程: 《mysql教程》

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

来源链接:
免责声明:
1.资讯内容不构成投资建议,投资者应独立决策并自行承担风险
2.本文版权归属原作所有,仅代表作者本人观点,不代表本站的观点或立场
标签: MySQL
上一篇:php获取远程图片并下载保存到本地的方法分析 下一篇:数据库中建立索引的主要作用是什么

相关资讯