mysql> source ./ddl.sql
ERROR 1146 (42S02): Table 'rentacar.user' doesn't exist
ERROR 1146 (42S02): Table 'rentacar.car_class' doesn't exist
ERROR 1146 (42S02): Table 'rentacar.location' doesn't exist
ERROR 1146 (42S02): Table 'rentacar.reservation' doesn't exist
mysql> quit
mysql> source ./ddl.sql
ERROR 1049 (42000): Unknown database 'rentacar'
ERROR 1049 (42000): Unknown database 'rentacar'
ERROR 1049 (42000): Unknown database 'rentacar'
ERROR 1049 (42000): Unknown database 'rentacar'
mysql> create database rentacar ;
Query OK, 1 row affected (0.02 sec)

mysql> source ./ddl.sql
Query OK, 0 rows affected (0.18 sec)

Query OK, 0 rows affected (0.03 sec)

Query OK, 0 rows affected (0.01 sec)

Query OK, 0 rows affected (0.03 sec)

mysql> use rentacar ;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;
+--------------------+
| Tables_in_rentacar |
+--------------------+
| car_class          |
| location           |
| reservation        |
| user               |
+--------------------+
4 rows in set (0.00 sec)

mysql> quit
