To test whether a connection can even be made, execute the command STATUS. : Introduction « Introduction « MySQL Tutorial






mysql>
mysql>
mysql> STATUS;
--------------
mysql  Ver 14.12 Distrib 5.0.41, for Win32 (ia32)

Connection id:          55
Current database:       test
Current user:           root@localhost
SSL:                    Not in use
Using delimiter:        ;
Server version:         5.0.41-community-nt MySQL Community Edition (GPL)
Protocol version:       10
Connection:             localhost via TCP/IP
Server characterset:    latin1
Db     characterset:    latin1
Client characterset:    latin1
Conn.  characterset:    latin1
TCP port:               3306
Uptime:                 10 days 23 hours 17 min 22 sec

Threads: 1  Questions: 34588  Slow queries: 0  Opens: 4294  Flush tables: 1  Open tables: 18  Queries per second avg: 0.036
--------------

mysql>








1.1.Introduction
1.1.1.Connecting To Your Database
1.1.2.To test whether a connection can even be made, execute the command STATUS.
1.1.3.Keywords may be entered in any lettercase.
1.1.4.You can use mysql as a simple calculator:
1.1.5.Database, table, index, column, and alias names are identifiers.