I have an InnoDb DB innodb_db_1. I have included innodb_file_per_table.
If I go to var/lib/mysql/innodb_db_1/, I will find the files table_name.ibd, table_name.frm, db.opt.
Now I am trying to copy these files to another database, for example, to innodb_db_2( var/lib/mysql/innodb_db_2/), but nothing happened.
But if my database is MyIsam, I can copy this way and everything will be fine.
What are some suggestions for moving the database by copying the InnoDb database file?
source
share