久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

如何查詢mysql的版本號(hào)

共計(jì) 1840 個(gè)字符,預(yù)計(jì)需要花費(fèi) 5 分鐘才能閱讀完成。

這篇文章給大家分享的是有關(guān)如何查詢 mysql 的版本號(hào)的內(nèi)容。丸趣 TV 小編覺(jué)得挺實(shí)用的,因此分享給大家做個(gè)參考,一起跟隨丸趣 TV 小編過(guò)來(lái)看看吧。

查詢方法:1、命令行登錄 mysql,在輸出的信息中獲取版本號(hào);2、利用 navicat 連接 mysql,右鍵選擇“詳細(xì)信息”,在彈窗中查看版本號(hào)信息;3、執(zhí)行“select version();”語(yǔ)句來(lái)查詢;4、執(zhí)行“status”語(yǔ)句來(lái)查詢。

本教程操作環(huán)境:linux5.9.8 系統(tǒng)、mysql 5.7.17 版本、Dell G3 電腦。

查看 mysql 的版本號(hào)

1、在命令行登錄 mysql,即可看到 mysql 的版本號(hào)

[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

2、利用 navicat 連接 mysql 的客戶端工具可以查看

連接之后右鍵——詳細(xì)信息

3、利用 mysql 命令查看

mysql  select version();
+-----------+
| version() |
+-----------+
| 5.7.17 |
+-----------+
1 row in set (0.01 sec)
mysql

4

4、在命令行使用 status 查看

mysql  status
--------------
mysql Ver 14.14 Distrib 5.7.17, for linux-glibc2.5 (x86_64) using EditLine wrapper
Connection id: 488398
Current database: 
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile:  
Using delimiter: ;
Server version: 5.7.17 MySQL Community Server (GPL)
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: utf8
Db characterset: utf8
Client characterset: utf8
Conn. characterset: utf8
UNIX socket: /tmp/mysql.sock
Uptime: 5 days 10 hours 5 min 40 sec
Threads: 154 Questions: 15051829 Slow queries: 0 Opens: 37599 Flush tables: 11 Open tables: 1563 Queries per second avg: 32.138
--------------
mysql

5、使用 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

感謝各位的閱讀!關(guān)于“如何查詢 mysql 的版本號(hào)”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,讓大家可以學(xué)到更多知識(shí),如果覺(jué)得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!

正文完
 
丸趣
版權(quán)聲明:本站原創(chuàng)文章,由 丸趣 2023-07-17發(fā)表,共計(jì)1840字。
轉(zhuǎn)載說(shuō)明:除特殊說(shuō)明外本站除技術(shù)相關(guān)以外文章皆由網(wǎng)絡(luò)搜集發(fā)布,轉(zhuǎn)載請(qǐng)注明出處。
評(píng)論(沒(méi)有評(píng)論)
主站蜘蛛池模板: 射阳县| 尼木县| 门头沟区| 会泽县| 全州县| 星子县| 新密市| 民县| 乐至县| 吴堡县| 玉田县| 客服| 济宁市| 崇明县| 康马县| 梁河县| 师宗县| 铁力市| 三亚市| 临桂县| 延庆县| 张家港市| 武清区| 施秉县| 昌宁县| 新闻| 承德县| 黄冈市| 文山县| 清远市| 都江堰市| 三穗县| 娄底市| 黄大仙区| 米林县| 双峰县| 陵水| 金寨县| 寿宁县| 大方县| 会昌县|