The databases will be stored in
/path.to.mysql/var
copy that entire directory and you will have you databases.
For interest sake, under the var directory, each database will have directory whose name matches the database name. in that directory, for each table in the database, there will be a .ISM, .ISD, and .frm file, each with the same name as the table.
brad.
ps- a aword of warning to those who just tar your var directory to backup your mysql db's. This doesn't always work. I tried moving from machine to another, and the databses would not be recognized. Granted, one machine was Mac, the other Intel, both had different flavors of BSD, and slightly different version of MySQL. I didn't experiment any further, because it was enough for me to go back to mysqldumps (which will work regardless of platform or OS), but it's something to keep in mind.