Essay preview
MySQL – Creating Databases and Tables
1. 2. Select Start -> MySQL -> MySQL Server 5.1 -> MySQL Command Line Client. Enter password to access the MySQL server. The password is specified when MySQL is installed. 3. Type CREATE DATABASE mydatabase to create the database.
4.
Type USE mydatabase; to inform the system that all SQL commands that follow is using mydatabase. If database is found, the system will respond with: Database changed
5. 6. 7.
Copy the create_table.sql script file to c:\script. Open the file in text editor to view the sql statement. Type source c:\script\create_table.sql to create the ...