I want to copy a table\'s schema as well as the data within that table to another database table in another database on a live server. How could I do this?
In Commandline:
mysqldump -h localhost -u username -ppassword [SCHEMA] --tables [TABLE] | mysql -h otherhost -u username -ppassword [SCHEMA2]
This will copy table inside SCHEMA on localhost to SCHEMA2 on otherhost.
localhost and otherhost are just hostname and might be same or different.