分类: Mysql/postgreSQL
2018-06-28 17:46:48
方法一:
[root@db01 ~]# mysql 登录的时候会显示数据库的版本
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.34-log Source distribution
方法二:
mysql> status;
--------------
mysql Ver 14.14 Distrib 5.6.34, for Linux (x86_64) using EditLine wrapper
方法三:
mysql> select version();
+------------+
| version() |
+------------+
| 5.6.34-log |