mysql {databasename} < {fileName}
Make sure the database exists first. (Do a create database if it doesn't)
Once you do a dump, open it with a text editor and take a look at it. You'll find that it should have DROP statements for each table, CREATE statements for each table and INSERT statements for each row in each table.
Depending on your hardware, hw you have MySQL configured, what tables types you use and how much data you have, the import can be very quick or take a while.
Anyhow, it is the best way to backup a database. DO NOT (for reasons explained elsewhere) copy the files directly. My favorite reason for using mysqldump is that I have 2 servers, production and development. They are usually NOT running the same version of mysql. I can refresh my development server with data from my production server anytime I want with mysqldump. Copying the directories wouldn't work at all.
HTH,
Cal
Cal Evans
Senior Internet Dreamer
http://www.calevans.com
*