Home>Article>Operation and Maintenance> How to query the version information of mysql in linux

How to query the version information of mysql in linux

青灯夜游
青灯夜游 Original
2022-06-14 15:37:08 17728browse

3 query methods: 1. Open the terminal, execute the "mysql -V" command, and check the version information followed by the Distrib keyword in the output result. 2. Open the terminal, execute the "mysql --version" command, and check the version information followed by the Distrib keyword in the output result. 3. Open the terminal, execute "mysql --help |grep Distrib", and check the version information followed by the Distrib keyword in the output result.

How to query the version information of mysql in linux

The operating environment of this tutorial: linux7.3 system, MySQL version 5, Dell G3 computer.

Three ways to query mysql version information on Linux

##Method 1: Open the terminal and execute the "mysql -V" command(Note: V is capital)

After the command is executed, the effect is as follows (you can see that the MySQL version on the current host is 5.6.42):

How to query the version information of mysql in linux

Method 2: Open the terminal and execute the "mysql --version" command

After the command is executed, the effect is as follows (you can see that the MySQL version on the current host is 5.6.42):

How to query the version information of mysql in linux

Method 3: Open the terminal and execute the "mysql --help |grep Distrib" command

After the command is executed, the effect is as follows (You can see that the MySQL version on the current host is 5.7.15):

How to query the version information of mysql in linux

[Related recommendations:

Linux video tutorial,mysql video Tutorial

The above is the detailed content of How to query the version information of mysql in linux. 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