Mysql查看版本的四种方式
第一种
mysql> status;
--------------
mysql Ver 14.14 Distrib 5.6.47, for Linux (x86_64) using EditLine wrapper
Connection id: 41842
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: '
Using delimiter: ;
Server version: 5.6.47-log Source distribution
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: utf8mb4
Db characterset: utf8mb4
Client characterset: utf8
Conn. characterset: utf8
UNIX socket: /tmp/mysql.sock
Uptime: 38 days 8 hours 2 min 36 sec
Threads: 1 Questions: 445103 Slow queries: 0 Opens: 2190 Flush tables: 1 Open tables: 32 Queries per seco
nd avg: 0.134--------------
第二种
mysql> select version();
+------------+
| version() |
+------------+
| 5.6.47-log |
+------------+
1 row in set (0.00 sec)
第三种
[root@Centos8-01 ~]# mysql -V
mysql Ver 14.14 Distrib 5.6.47, for Linux (x86_64) using EditLine wrapper
第四种
[root@Centos8-01 ~]# mysql --help|grep Distrib
mysql Ver 14.14 Distrib 5.6.47, for Linux (x86_64) using EditLine wrapper
end
【版權聲明】
本文爲原創,遵循CC 4.0 BY-SA版權協議!轉載時請附上原文鏈接及本聲明。
原文鏈接:https://tdlib.com/am.php?t=xe5xwnmfeg1w Tag: mysql基础