首页 > 编程知识 正文

数据库已存在怎么办,删除数据库中已经存在的表

时间:2023-05-05 07:42:08 阅读:35590 作者:1743

acoupleofdaysagoicouldn ' tgetmysqltorunanymore (xampp ) aftersomegooglingifoundthispost : xampp-mysqlshutdownunexpectedll

itsaidtoremovetheibdata1filewhichidid,mysqlstartsagainbutthetablesofonedatabasearegone, howevericanstillseethetablesthatcontainvaluesinthedatafolder (ibdandfrmfiles ) isthereanywaythaticanrecoverthosetables?

解决方案

the ibdata 1文件is important,andnormallyyoushouldnotdeleteitunlessyouwanttodropallyourinnnodbdataaandstartoverwithanemptymysqlinsqlinstatioue

evenifyousedinnodb _ file _ per _ table=1andallyourtablesarestoredin.IBD files, the ibdata1filestillcontainsthedatadictation whichisbasicallylikeaglobaltableofcontentsforinnodbtablespaces.it ' showinnodbknodbknononod hichfilestheyreelection ein.the ibdata1filecanalsoincludeimportantdataintherollbacksegmentandchangebuffer,whichwilleventualll

If you have removed ibdata1,andyouhavebeenstoringtabledatainfile-per-table format,it is sometimes possible to recover,butit '

it ' ssimplertorestoreyourmostrecentbackupandthenusethebinarylogtoplaybackchangesmadesubsequentttoyourmostrecentbackup。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。