Exercise : MySQL Console

Use the MySQL console through an SSH program (e.g. PuTTY) to connect to webster and test out one of your queries. (See next slide.)

screenshot

Issuing SQL commands directly in MySQL

SHOW DATABASES;
USE database;
SHOW TABLES;
$ mysql -u yourusername -p
Password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.

mysql> USE world;
Database changed

mysql> SHOW TABLES;
+-----------+
| cities    | 
| countries | 
| languages | 
+-----------+
3 rows in set (0.00 sec)