重庆小潘seo博客

当前位置:首页 > 重庆网络营销 > 小潘杂谈 >

小潘杂谈

怎么查看mysql版本

时间:2020-09-22 19:00:06 作者:重庆seo小潘 来源:
查看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

怎么查看mysql版本

查看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>怎么查看mysql版本

2.利用mysql命令查看mysql> select version();+-----------+| version() |+-----------+| 5.7.17|+-----------+1 row in set (0.01 sec)mysql>怎么查看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教程》以上就是怎么查看mysql版本的详细内容,更多请关注小潘博客其它相关文章!