在命令行登录 mysql,即可看到 mysql 的版本号。如下:
C:\Users\Administrator>mysql -u root -p
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 14
Server version: 5.1.68-community MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>mysql 数据库版本为“Server version: 5.1.68-community MySQL Community Server (GPL)”。
例如,我们使用 navicat 查看数据库连接信息。如下图:

你可以使用 select version(); 语句查看 mysql 的版本信息。如下图:

在 mysql 的命令行使用 status 查看 mysql 状态。如下图:

[root@S0 ~]# mysql --help | grep Distrib
mysql Ver 14.14 Distrib 5.7.10, for Linux (i686) using EditLine wrapper