data-recovery

Where does MySQL store database files on Windows and what is the name of the files?

。_饼干妹妹 提交于 2019-11-26 17:59:07
问题 So I accidentally formatted my hard drive and re-installed Windows and forgot to backup an important database I had in my MySQL server. I'm trying to salvage files now using some software, but I don't know what to look for. What is the path that the files are stored in, and what are the files named (what naming convention, or file extension should I look for)? I believe my server was using MyISAM, but not 100% sure. Any advice would be appreciated! 回答1: You can check my.ini file to see where

Can I rollback a transaction I've already committed? (data loss)

孤街醉人 提交于 2019-11-26 09:25:57
问题 I committed an incorrect UPDATE statement and have lost some data. Is it possible to rollback now, after I\'ve already committed? Any help? ROLLBACK says NOTICE: there is no transaction in progress . 回答1: No, you can't undo, rollback or reverse a commit. STOP THE DATABASE! (Note: if you deleted the data directory off the filesystem, do NOT stop the database. The following advice applies to an accidental commit of a DELETE or similar, not an rm -rf /data/directory scenario). If this data was

How to recover Git objects damaged by hard disk failure?

▼魔方 西西 提交于 2019-11-26 01:46:50
问题 I have had a hard disk failure which resulted in some files of a Git repository getting damaged. When running git fsck --full I get the following output: error: .git/objects/pack/pack-6863e0a0e4b4ded6090fac5d12eba6ca7346b19c.pack SHA1 checksum mismatch error: index CRC mismatch for object 6c8cae4994b5ec7891ccb1527d30634997a978ee from .git/objects/pack/pack-6863e0a0e4b4ded6090fac5d12eba6ca7346b19c.pack at offset 97824129 error: inflate: data stream error (invalid code lengths set) error:

How to recover Git objects damaged by hard disk failure?

感情迁移 提交于 2019-11-25 20:49:51
I have had a hard disk failure which resulted in some files of a Git repository getting damaged. When running git fsck --full I get the following output: error: .git/objects/pack/pack-6863e0a0e4b4ded6090fac5d12eba6ca7346b19c.pack SHA1 checksum mismatch error: index CRC mismatch for object 6c8cae4994b5ec7891ccb1527d30634997a978ee from .git/objects/pack/pack-6863e0a0e4b4ded6090fac5d12eba6ca7346b19c.pack at offset 97824129 error: inflate: data stream error (invalid code lengths set) error: cannot unpack 6c8cae4994b5ec7891ccb1527d30634997a978ee from .git/objects/pack/pack