Home  >  Article  >  Database  >  How to check mysql connection version

How to check mysql connection version

coldplay.xixi
coldplay.xixiOriginal
2020-10-09 14:11:023198browse

How to check the mysql connection version: 1. Directly connect to MySQL on the command line, the code is [mysql -uroot -p123456]; 2. Directly use the sql statement to view, the code is [select version() from dual ;].

How to check mysql connection version

How to check the mysql connection version:

Method 1:

Connect MySQL directly from the command line

mysql -uroot -p123456

You can see that the printed log contains version information [5.7.17]

How to check mysql connection version

Two methods:

is to use the client tool to connect. The editor here uses dbvis

How to check mysql connection version

Clicking the connection will print out MySQL The server version information is similar to the first method.

How to check mysql connection version

The third method:

After connecting to MySQL, you can also view the version information by entering status, as shown in the figure below Show

How to check mysql connection version

Enter \s to achieve the same effect as the previous step

How to check mysql connection version

The last method :

In fact, it is a very conventional method, which is to directly use sql statements to view

select version() from dual;

How to check mysql connection version

related free learning recommendations : mysql database(Video)

The above is the detailed content of How to check mysql connection version. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn