Forum Moderators: open
Thanks.
first:
mysqldump -uuser -ppassword olddatabase table >olddatabase_table.sql
(where user, password, olddatabase and table are replaced with actual names/values)
olddatabase_table.sql will contain among other statements a suitable CREATE TABLE statement and a series of INSERT statements to reproduce the existing table with its contents.
then:
mysql -uuser -ppassword newdatabase <olddatabase_table.sql