C:\Users\anderson>c:\xampp\mysql\bin\mysql -u root -p
Enter password: ***********
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 95
Server version: 5.5.27 MySQL Community Server (GPL)

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


mysql> use simpsons;
Database changed
mysql> show tables;
+--------------------+
| Tables_in_simpsons |
+--------------------+
| courses            |
| grades             |
| students           |
| teachers           |
+--------------------+
4 rows in set (0.00 sec)

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| cdcol              |
| imdb               |
| mysql              |
| performance_schema |
| phpmyadmin         |
| simpsons           |
| test               |
| webauth            |
+--------------------+
9 rows in set (0.00 sec)

mysql> SELECT * FROM courses;
+-------+-----------------------+------------+
| id    | name                  | teacher_id |
+-------+-----------------------+------------+
| 10001 | Computer Science 142  |       1234 |
| 10002 | Computer Science 143  |       5678 |
| 10003 | Computer Science 190M |       9012 |
| 10004 | Informatics 100       |       1234 |
+-------+-----------------------+------------+
4 rows in set (0.00 sec)