Home  >  Article  >  Database  >  MySql .frm数据库文件导入的问题

MySql .frm数据库文件导入的问题

WBOY
WBOYOriginal
2016-06-07 18:01:39836browse

手头有.frm 文件,怎样导入数据库啊?

在网上搜索了半天,最简单的办法是在新的数据库中创建和原名字一样的数据库,然后把.frm 文件拷贝进去就OK了。

可是,有些时候这样不行,查询的时候会出现某某表不存在的问题,在确认.frm ,db.opt 文件完整的情况下,那么这种表使用的应该是innodb表引擎,应该将数据目录中的innodb数据文件(默认ibdata1) 也一并复制过来。重启MySql 服务就好了。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn