P粉0154020132023-08-26 09:51:58
Older versions of MySQL allowed you to do this in MyISAM tables, but MySQL 8.0 introduced a new "data dictionary" implementation, which is an internally maintained metadata database and has a preference for InnoDB over MyISAM. Therefore, I believe the casual way of moving files around no longer works as well as it once did. To move a table from one instance to another, you should perform the export and import steps correctly.
For InnoDB, you can use Transportable tablespaces. At least this way you don't have to do a full data import, but it does require a few more steps than just copying the files.
P.S.: I haven't used MyISAM in years. I prefer my database to support ACID properties, and MyISAM does not support any ACID properties.