Copy MySQL table from one database to another

Problem

You would like to copy a table with its data from one database to another.

Solution

You can use the following:

taken from here