Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我将我的数据库从 phpmyadmin 文件夹即 wamp/bin/mysql/mysql(version)/data/DBname 复制到同一目录中的另一个系统,它会正常工作吗?
最好的办法是在 MySQL 中创建一个新数据库(例如new_database),然后将其停止/关闭,然后将文件从内部复制wamp/bin/mysql/mysql(version)/data/DBname到wamp/bin/mysql/mysql(version)/data/new_database并重新启动 MySQL。
new_database
wamp/bin/mysql/mysql(version)/data/DBname
wamp/bin/mysql/mysql(version)/data/new_database
这仅适用于具有 MyISAM 表而不是 InnoDB 表的数据库。