Welcome to YLOAN.COM
yloan.com » Data Recovery » Recovering MySQL Corruption in Bugzilla Database
Games Personal-Tech Data Entry registry cruise torrent mac code virus storage uninstaller systems cisco bugs wireless codes maintenance dell update communication trojan atlanta Data Backup Data Storage Data Protection Data Recovery Anti-Virus Windows Linux Software Hardware Mobil-Computing Certification-Tests Computers & Internet Internet

Recovering MySQL Corruption in Bugzilla Database

Recovering MySQL Corruption in Bugzilla Database


Bugzilla is a web-based bug tracking and testing application that is used by many software development companies. It extensively various databases including MySQL for its backend support especially because both of these applications are freely available. Although this tool runs pretty fine in most cases, it can get stalled when the some of the MySQL tables get corrupt. In such cases, you are unable to perform various tasks on the database. You can use the 'myisamchk' command with different parameters to repair MySQL database. If it does not work, then you should use a professional MySQL recovery software to recover MySQL database.

Discussing a similar situation in Bugzilla, consider you get the following error message while generating a bugs report:

"undef error - DBD::mysql::db selectrow_array failed: Table 'attach_data' is


marked as crashed and should be repaired [for Statement "SELECT LENGTH(thedata)

FROM attach_data WHERE id =?"] at Bugzilla/Attachment.pm line 344

Bugzilla::Attachment::datasize('Bugzilla::Attachment=HASH(0x9df119c)') called"

Cause:

As can be inferred from the message itself, the 'attach_data' table is corrupt, which is why you are getting this error message in Bugzilla.

Resolution:

To resolve this error message and repair MySQL database, you should perform the following steps:

You should find out all the corrupt tables in the MyISAM database using the following command:

# myisamchk /var/lib/mysql/bugs/*.MYI >> /tmp/myisamchk_log.txt

The /tmp/myisamchk_log.txt file will contain the list of all the checked tables as displayed:

Checking MyISAM file: user_group_map.MYI

Data records: 182 Deleted blocks: 0

- check file-size

- check record delete-chain

- check key delete-chain

- check index reference

- check data record references index: 1

Repair the table using the following command:

# myisamchk -r profiles.MYI


You should do a check and repair using the myisamchk command as displayed:

# myisamchk --silent --force --fast --update-state /var/lib/mysql/bugs/*.MYI

The 'myisamchk' tool is competent enough to check and repair the MyISAM table. But some instances have been noticed where the table is not repaired using this tool. On such occasions, the most worthwhile option is to use a third-party software to perform MySQL repair. These MySQL recovery tools guarantee MySQL repair without any damage to the original tables.

One such software is Stellar Phoenix Database Recovery for MySQL, which repairs MySQL files from all instances of logical corruption. Can be used on various Windows platforms including Windows 7, Vista, Server 2003, XP, and 2000, this MySQL recovery utility recovers MySQL tables created in MySQL 3.x, 4.x, 5.x, and 6.x versions.
Different File Types and their Recovery Olap server a multidimensional data storage providing quick access Recovery of deleted files Forex : Euro plunges after disappointing U.S. indicators, fears about the recovery The euro widened its losses against the dollar Tuesday, penalized b The world a "deficit tide" cast a shadow over the economic recovery - the economy, the deficit, the crisis - construction machinery 3 Easy Steps for Hard Drive Recovery Easy Solution for Hard Drive Recovery Hard drive recovery – Causes of File loss Important features of hard drive recovery? Recover Deleted Files - How can you lose data from your hard drive? Preparing For Face Lift Recovery Dragon Jim Treliving Breathes More Life Into Our Economic Recovery Plastic Surgery: Plan For Recovery
print
www.yloan.com guest:  register | login | search IP(18.188.127.79) Paraiba / Alagoa Nova Processed in 0.008446 second(s), 7 queries , Gzip enabled , discuz 5.5 through PHP 8.3.9 , debug code: 52 , 3001, 165,
Recovering MySQL Corruption in Bugzilla Database Alagoa Nova