Creating a database does not select it for use : Create Database « Database « MySQL Tutorial
- MySQL Tutorial
- Database
- Create Database
mysql>
mysql>
mysql> CREATE DATABASE myDatabase;
Query OK, 1 row affected (0.02 sec)
mysql> USE myDatabase; -- Select it manually
Database changed
mysql> drop database myDatabase;
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql>