怎么查看mysql版本


本文摘自PHP中文网,作者hzc,侵删。

查看mysql版本的方法:

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

1

2

3

4

5

6

7

8

9

10

11

12

13

14

[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命令查看

1

2

3

4

5

6

mysql> select version();+-----------+

| version() |

+-----------+

| 5.7.17    |

+-----------+1 row in set (0.01 sec)

mysql>

1276909-20181030113514956-1245688262.png

3.使用mysql --help | grep Distrib查看

1

2

[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版本的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

mysql存储过程太慢怎么办

idea如何集成mysql

mysql基础架构教程之查询语句执行的流程详解

通过mysql 判断点是否在指定多边形区域内

mysql怎么修改表名?

mysql alter命令使用详解

mysql中修改存储过程的命令是什么?

mysql数据库设计优化的8种方法介绍

怎么将mysql服务移除?

mysql执行计划介绍

更多相关阅读请进入《mysql》频道 >>


数据库系统概念 第6版
书籍

数据库系统概念 第6版

机械工业出版社

本书主要讲述了数据模型、基于对象的数据库和XML、数据存储和查询、事务管理、体系结构等方面的内容。



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...