Six ways to check mysql version

Welcome to wrong, welcome to exchange!

Under the terminal there are two

1,[root@localhost ~]# mysql -V

2,[root@localhost ~]# mysql --help | grep Distrib

There are four kinds under mysql

3. When you log in, it will display

4,mysql> status;

5,mysql> select version();

6,mysql> show variables like "%version%";

All textures of cmd operation under windows (cmd does not have grep command, direct mysql --help)


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325852233&siteId=291194637