查看mysql版本的六种方法

欢迎指错,欢迎交流!

在终端下有两种

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

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

在mysql下有四种

3,登陆时会显示

4,mysql> status;

5,mysql> select version();

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

windows下cmd操作的全部贴图(cmd没有grep命令,直接mysql --help)


猜你喜欢

转载自blog.csdn.net/bingguang1993/article/details/80019407