1、使用命令行模式进入mysql会看到最开始的提示符
Your MySQL connection id is 3
Server version: 5.1.69 Source distribution
2、命令行中使用status可以看到
mysql> status;
--------------
mysql Ver 14.14 Distrib 5.1.69, for redhat-linux-gnu (x86_64) using readline 5.1
Connection id:3
Current database:
Current user: root@localhost
SSL: Not in use
3、$ mysql --help | grep Distrib
mysql Ver 14.14 Distrib 5.1.69, for redhat-linux-gnu (x86_64) using readline 5.1