Heim  >  Artikel  >  Datenbank  >  如此恢复mysql 数据库*.frm,*.myd,*.myi文件

如此恢复mysql 数据库*.frm,*.myd,*.myi文件

WBOY
WBOYOriginal
2016-06-07 15:17:541154Durchsuche

这三个后缀名的数据库文件,分别为:*.frm是描述了表的结构,*.MYD保存了表的数据记录,*.MYI则是表的索引 恢复过程: 1.在MySql数据库里新建空的数据库db_library(注:如已有该数据库,略过); 2.找到mysql的安装路径里的data文件夹; 3.在data文件夹里新建

这三个后缀名的数据库文件,分别为:*.frm是描述了表的结构,*.MYD保存了表的数据记录,*.MYI则是表的索引

恢复过程:

1.在MySql数据库里新建空的数据库db_library(注:如已有该数据库,略过);


2.找到mysql的安装路径里的data文件夹;

3.在data文件夹里新建一个数据库文件夹(注:文件夹的名字跟你的数据库名字相同,若已有同名文件夹,也亦略过);


3.把备份的数据库(*.frm,*.myd,*.myi文件)复制到data目录下的以数据库命名的文件夹内(或是覆盖原有数据);

4.MySql中的db_library数据库恢复完毕Ok。



Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn