Method: 1. Use the "mysql -V" or "mysql --version" command to query; 2. Use the help command to query. The help command is used to display the help information of the shell's internal commands. The syntax is "mysql - -help|grep Distrib".
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
How to query the mysql version in Linux
1. Use the following command to check the MySQL version information:
mysql -V
or
mysql --version
After the command is executed, the effect is as follows:
2. Search in help mysql --help |grep Distrib
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of How to query mysql version in linux. For more information, please follow other related articles on the PHP Chinese website!