6.470 Day 2
Setting Up Your Database
The Big Picture:

This lecture goes through the mechanics of setting up and manipulating a database using sql.mit.edu.
Create an Account and an Empty Database

  1. Go to sql.mit.edu, peruse the site as well as the SQL questions in the scripts FAQ, then click on the sign-up link.
  2. Login in via your SQL password or your MIT certs.
  3. Create a database. The interface will force it to be of the form <username>+<database name>. Note that you are limited to 5 databases and 100 MB of data. If you find yourself running out of room, contact the 6.470 staff so we can work something out.

Manipulating Your Database

You have at least two choices for interacting with your database:

The latter suggestion may require more work but is generally more efficient for users comfortable with the technology because you're not navigating a clunky web interface.

To get yourself to a mysql prompt, do one of the following:

Once you're at the mysql prompt you need to switch to the database that you are using:
mysql> use <username>+<database name>
You're now read to manipulate your database.