Do you want to clone the existing database AND ALL ITS CONTENTS and have the other person install that?
Or do you want to just clone the existing tables but with no data in any tables?
Or some mix of the two?
The first option--some database and all its contents--is actually the easiest. MySQL provides a command line tool that does this:
Code:
mysqldump -uUSERNAME -pPASSWORD nameofdatabase > anyNameYouChoose.sql
Then, from the command line, it just as easy to restore (or re-create) that database:
Code:
mysql -uUSERNAME -pPASSWORD < anyNameYouChoose.sql
Again, these are issued from the command line. From the LINUX command line or from at DOS window command line on Windows. The name of the dump file doesn't have to end in ".sql" but it's traditional to do so.
********
If you want a mix, some tables with data and some without, the easiest way might be to dump the entire database, import (re-create) it on another machine, issue
TRUNCATE TABLE xxx commands to clear the data out of the tables that are to be blank, and then re-dump from that second machine.