
Just to finish up a thought for the OP:
Using mysqldump is a fantastic way to learn a lot about how to correctly model a database. If you're working on a tutorial with a sample database, it can be very educational to see exactly how the tables are constructed.
From the command line, the first example dumps out your entire MySQL database -- all db/table/index creation SQL, and INSERT statements for all of the data (a quick way to learn how to properly construct an INSERT statement for a particular table). If you just want a single database, use the second variant. The third line will recreate the database(s) from your file on another system. It's also a good quick n' dirty way to backup your database periodically.
mysqldump -uroot -p --all-databases > outputfile.sql
or
mysqldump -uroot -p --databases <dbname> > outputfile.sql
mysql -uroot -p < outputfile.sql