-3

I want to move one table in one database to other database using mysql dump on linux terminal How can I go about it ?

1 Answer 1

1

Take dump of a particular table from the particular database.

mysqldump -u root -p --databases DBname --tables Tablename > xxyy.sql

Import the table into new database.

mysql -u root -p newDBname < xxyy.sql

If you want to rename the table.

rename table dbname.tablename to dbname.newtablename;

Not the answer you're looking for? Browse other questions tagged or ask your own question.