If you decide to copy over one table from MySQL installation to
another installation, this could be done as simple as copying
over your-table-name.\* in data directory. Ofcourse, to do this,
the database should not be running at the time of copying.
For example, for tables created by MyISAM storage engine, the
files to be copied for table mytable are mytable.frm, mytable.MYD
and mytable.MYI. The ".frm" file contains table definition, the
".MYI" contains info about index and ".MYD" contains data.
If you do this kind of stuff often, you may want to dump the
header of the ".frm" header file. I just wrote a script for this.
You can download this php
script "frmdump" from here. Note that it is a php script, but
meant to be run from command line (not to be used as web page) :
$ ./frmdump mytable.frm
Dumping mytable.frm using .frm header format ... …
[Read more]