1.在终端下:
C:\Documents and Settings\Administrator>mysql -V
mysql Ver 14.12 Distrib 5.0.45, for Win32 (ia32)
C:\Documents and Settings\Administrator>mysql --version
mysql Ver 14.12 Distrib 5.0.45, for Win32 (ia32)
2.进入mysql
mysql> status;--------------
mysql Ver 14.12 Distrib 5.0.45, for Win32 (ia32)
Connection id: 8
Current database:
Current user: root@localhost
SSL: Not in use
Using delimiter: ;
Server version: 5.0.45-community-nt MySQL Community Edition (GPL)
Protocol version: 10
Connection: localhost via TCP/IP
Server characterset: utf8
Db characterset: utf8
Client characterset: utf8
Conn. characterset: utf8
TCP port: 3306
Uptime: 13 min 8 sec
Threads: 1 Questions: 23 Slow queries: 0 Opens: 11 Flush tables: 1 Open tab
les: 6 Queries per second avg: 0.029
--------------
3.使用mysql的函数
mysql> select version();
+---------------------+
| version() |
+---------------------+
| 5.0.45-community-nt |
+---------------------+
1 row in set (0.00 sec)
文章评论