How to check the version of the MySQL database

How to check the version of the MySQL database

A summary

Sentence summary:

SQL statement: select version ();
Command line: mysql -V or mysql --version

 

 

Second, three methods to view the version of the MySQL database

Transfer from or reference: three ways to view the version of the MySQL database
https://www.cnblogs.com/kzwrcom/p/6014544.html

1, using the parameters -V
First, we think that certainly view the version number of the command parameters, parameter -V (capital letters) or --version
Instructions:
D:\xampp\mysql\bin>mysql -V
or
D:\xampp\mysql\bin>mysql --version
 
2, -? Parameter
In fact, this has three similar parameters
--help
-I (uppercase i)
-?
These three parameters are viewing the help information
Instructions:
D:\xampp\mysql\bin>mysql -?
or
D:\xampp\mysql\bin>mysql --help
or
D:\xampp\mysql\bin>mysql -I
 
3, SQL statement to query the version information
select version();
Of course, there are other indirect methods can view the version information mysql database, such as the use status; and so on, but these three methods is the most convenient and most direct.
 

Reproduced in: https: //www.cnblogs.com/Renyi-Fan/p/11064960.html

Guess you like

Origin blog.csdn.net/weixin_34402090/article/details/93572363