查看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.利用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版本的详细内容。