如何查询mysql的版本号
这篇文章给大家分享的是有关如何查询mysql的版本号的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。
查询方法:1、命令行登录mysql,在输出的信息中获取版本号;2、利用navicat连接mysql,右键选择“详细信息”,在弹窗中查看版本号信息;3、执行“select version();”语句来查询;4、执行“status”语句来查询。
本教程操作环境:linux5.9.8系统、mysql 5.7.17版本、Dell G3电脑。
查看mysql的版本号1、在命令行登录mysql,即可看到mysql的版本号
[root@heyong~]#mysql-uroot-pEnterpassword:WelcometotheMySQLmonitor.Commandsendwith;or\g.YourMySQLconnectionidis487032Serverversion:5.7.17MySQLCommunityServer(GPL)Copyright(c)2000,2016,Oracleand/oritsaffiliates.Allrightsreserved.OracleisaregisteredtrademarkofOracleCorporationand/oritsaffiliates.Othernamesmaybetrademarksoftheirrespectiveowners.Type'help;'or'\h'forhelp.Type'\c'toclearthecurrentinputstatement.mysql>
2、利用navicat连接mysql的客户端工具可以查看
连接之后右键——详细信息
3、利用mysql命令查看
mysql>selectversion();+-----------+|version()|+-----------+|5.7.17|+-----------+1rowinset(0.01sec)mysql>
4
4、在命令行使用status查看
mysql>status--------------mysqlVer14.14Distrib5.7.17,forlinux-glibc2.5(x86_64)usingEditLinewrapperConnectionid:488398Currentdatabase:Currentuser:root@localhostSSL:NotinuseCurrentpager:stdoutUsingoutfile:''Usingdelimiter:;Serverversion:5.7.17MySQLCommunityServer(GPL)Protocolversion:10Connection:LocalhostviaUNIXsocketServercharacterset:utf8Dbcharacterset:utf8Clientcharacterset:utf8Conn.characterset:utf8UNIXsocket:/tmp/mysql.sockUptime:5days10hours5min40secThreads:154Questions:15051829Slowqueries:0Opens:37599Flushtables:11Opentables:1563Queriespersecondavg:32.138--------------mysql>
5、使用mysql --help | grep Distrib查看
[root@heyongtools]#mysql--help|grepDistribmysqlVer14.14Distrib5.7.17,forlinux-glibc2.5(x86_64)usingEditLinewrapper
感谢各位的阅读!关于“如何查询mysql的版本号”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。