在Linux终端窗口中,输入mysql -V以显示MySQL版本信息[sky@qin ~]# mysql -V
mysqlVer 14.14 Distrib 5.1.29-rc,forPC-Linux-GNU(I686 ) using readline 5.1
在Linux终端窗口中,输入mysql --help | grep Distrib以显示MySQL版本信息[ sky @ Qin~~ ] # MySQL-- help|grep distrib
mysqlVer 14.14 Distrib 5.1.29-rc,forPC-Linux-GNU(I686 ) using readline 5.1
3 .成功登录MySQL数据库后,将显示MySQL版本信息[sky@qin ~]# mysql -uroot -pxinwei
welcometothemysqlmonitor.command send with; or g。
Your MySQL connection id is 32652
服务器版本:5.1.29-RC-logmysqlcommunityserver (GPL )
类型' help;' or 'h ' forhelp.type 'c ' toclearthebuffer。
//mysql命令行下的命令以分号()结尾,分号(; 指令开始执行
//connection id表示到MySQL数据库的连接次数;
//5.1.29-RC-logmysqlcommunityserver指示此版本为社区版本;
//(GPL )表明此版本符合GPL协议;
输入help或h,可以查看帮助信息;
//输入c,可以清除缓存。 缓存包含以前输入的命令;
4 .登录MySQL数据库后,输入status以显示关于MySQL版本信息mysql status
-----------------
mysqlVer 14.14 Distrib 5.1.29-rc,forPC-Linux-GNU(I686 ) using readline 5.1
连接id :32652
current数据库:
Current user:sky@localhost
SSL:Not in use
Current pager:stdout
Using outfile: ' '
用户定义器:
服务器版本:5.1.29-RC-logmysqlcommunityserver (GPL )
协议版本:10
连接: localhostviaunixsocket
Server characterset:utf8
Dbcharacterset:utf8
客户端characters et : utf 8
Conn.characterset:utf8
UNIX socket :/usr/local/MySQL/data/MySQL.sock
Uptime:20 hours 37 min 24 sec
threads :8 questions 3360634045 slow queries 3360 opens 336013622 flush tables :1 open tables :64 queriespersecondavg 3360.7367。
-----------------
5 .登录MySQL数据库后,使用MySQL系统函数获取关于MySQL版本信息mysql select version (;
-----------------
|版本(|
-----------------
| 5.1.29-rc-log |
-----------------
1原始插入(0.00 sec )。
博文只是学习交流,转载请注明出处。