Microsoft Windows XP [版本 5.1.2600] (C) 版权所有 1985-2001 Microsoft Corp.C:\Documents and Settings\User>cd c:\mysql\binC:\mysql\bin>mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 to server version: 4.0.15-ntType 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql> Your MySQL connection id is 3 to server version: 4.0.15-nt
To:lehool(爱生活,爱精彩!) 谢了!:)
还有一个方法 select version();
其实phpMyAdmin上面有显示的,呵呵
很多方法c:\>mysql --version mysql Ver 12.22 Distrib 4.0.17, for Win95/Win98 (i32)c:\>mysql -uroot -p Enter password: ******** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1424 to server version: 4.0.17-nt-logType 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql> select version(); +---------------+ | version() | +---------------+ | 4.0.17-nt-log | +---------------+ 1 row in set (0.05 sec)mysql> select @@version; +---------------+ | @@VERSION | +---------------+ | 4.0.17-nt-log | +---------------+ 1 row in set (0.01 sec)
(C) 版权所有 1985-2001 Microsoft Corp.C:\Documents and Settings\User>cd c:\mysql\binC:\mysql\bin>mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.0.15-ntType 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql>
Your MySQL connection id is 3 to server version: 4.0.15-nt
谢了!:)
select version();
mysql Ver 12.22 Distrib 4.0.17, for Win95/Win98 (i32)c:\>mysql -uroot -p
Enter password: ********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1424 to server version: 4.0.17-nt-logType 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql> select version();
+---------------+
| version() |
+---------------+
| 4.0.17-nt-log |
+---------------+
1 row in set (0.05 sec)mysql> select @@version;
+---------------+
| @@VERSION |
+---------------+
| 4.0.17-nt-log |
+---------------+
1 row in set (0.01 sec)