"There is another easy way, you can just copy all data in the var directory and give it to your friend. Thats what I really like about mysql!"
Note: this is possibly the worst feature that MySQL has. Before you can do this safely, you MUST lock the tables you are copying, or shutdown the database engine.
If you don't, you risk losing the entire table. Never ever touch any programs data files!
In short: learn to do things properly, and use mysqldump.