Stellar Logo
  • For Individuals
    Back to main menu

    For Individual

    • Windows Data Recovery

      Recovers lost or deleted Office documents, emails, presentations & multimedia files.

      • Free
      • Standard
      • Professional
      • Premium
    • Mac Data Recovery

      Recovers deleted files, photos, videos etc. on Mac.

      • Free
      • Standard
      • Professional
      • Premium
    • Photo Recovery

      Recover photos, videos, & audio files from all cameras and storage on Windows or Mac.

      • Standard
      • Professional
      • Premium
    • iPhone Data Recovery

      Recover deleted photos, videos, contacts, messages etc. directly from iPhone & iPad.

      • Recover
      • Erase
      • Toolkit
    • Video Repair

      Repair multiple corrupt videos in one go. Supports MP4, MOV & other formats.

      • Standard
      • Premium
    • Photo Repair

      Repair multiple corrupt photos in one go. Supports JPEG & other formats.

      • Standard
      • Professional
      • Premium
  • For Business
    Back to main menu

    For Business

    • Email Repair
      • Exchange Repair Repair corrupt EDB file & export mailboxes to Live Exchange or Office 365
      • Outlook PST Repair Repair corrupt PST & recover all mailbox items including deleted emails & contacts
      • OLM Repair Repair Outlook for Mac (OLM) 2011 & 2016 backup files & recover all mailbox items
      • Exchange Toolkit Repair EDB & Exchange backup file to restore mailboxes, convert OST to PST, & convert EDB to PST
      • Active Directory Repair Repair corrupt Active Directory database (Ntds.dit file) & extract all objects in original form
    • Email Converter
      • EDB to PST Convert online & offline EDB file & extract all mailbox items including Public Folders in PST
      • OST to PST Convert inaccessible OST file & extract all mailbox items including deleted emails in PST
      • NSF to PSTConvert IBM Notes NSF file & export all mailbox items including emails & attachments to PST
      • MBOX to PSTConvert MBOX file of Thunderbird, Entourage & other clients, & export mailbox data to PST
      • OLM to PST Convert Outlook for Mac Data File (OLM) & export all mailbox data to PST in original form
      • GroupWise to PST Convert GroupWise mail & export all mailbox items - emails, attachments, etc. - to PST
      • EML to PSTConvert Windows Live Mail (EML) file & export mailbox data - emails, attachments, etc. - to PST
      • Office 365 to PSTConnect to Office 365 account & export mailbox data to PST and various other formats
      • Migrator for Office 365Quickly migrate Outlook data files(OST/PST) directly to Office 365 or Live Exchange
    • File Repair
      • SQL Repair Repair corrupt .mdf & .ndf files and recover all database components in original form
      • Access RepairRepair corrupt .ACCDB and .MDB files & recover all records & objects in a new database
      • QuickBooks RepairRepair corrupt QuickBooks® data file & recover all file components in original form
      • MySQL RepairRepair MyISAM & InnoDB tables and recover all objects - keys, views, tables, triggers, etc.
      • Excel RepairRepair corrupt Excel (.XLS & .XLSX) files and recover tables, charts, chart sheet, etc.
      • BKF RepairRepair corrupt backup (BKF, ZIP, VHDX and .FD) files and restore complete data
      • Database ConverterInterconvert MS SQL, MySQL, SQLite, and SQL Anywhere database files
      • PowerPoint RepairRepair corrupt PPT files and restore tables, header, footer, & charts, etc. like new
      • File Repair ToolkitRepair corrupt Excel, PowerPoint, Word & PDF files & restore data to original form
    • Data Recovery & Erasure
      • Data RecoveryRecover lost or deleted data from HDD, SSD, external USB drive, RAID & more.
      • Tape Data RecoveryRetrives data from all types and capacities of tape drives including LTO 1, LTO 2, LTO 3, & others.
      • Virtual Machine RecoveryRecover documents, multimedia files, and database files from any virtual machine
      • File ErasurePermanently wipe files and folders, and erase traces of apps and Internet activity.
      • Mobile ErasureCertified and permanent data erasure software for iPhones, iPads, & Android devices
      • Drive ErasureCertified and permanent data erasure software for HDD, SSD, & other storage media
    • Toolkit
      • Exchange Toolkit5-in-1 software toolkit to recover Exchange database, convert EDB to PST, convert OST to PST, restore Exchange backup, and reset Windows Server password.
      • Outlook ToolkitComprehensive software suite to repair PST files, merge PST files, eliminate duplicate emails, compact PST files, and recover lost or forgotten Outlook passwords.
      • File Repair ToolkitPowerful file repair utility to fix corrupt Word, PowerPoint, and Excel documents created in Microsoft Office. It also repairs corrupt PDF files and recovers all objects.
      • MS SQL Toolkit5-in-1 software toolkit to repair corrupt SQL database, restore database from corrupt backup, reset database password, analyze SQL logs, & interconvert databases.
      • Data Recovery ToolkitSoftware helps to recovers deleted data from Windows, Mac and Linux storage devices. Also supports recovery from RAIDs & Virtual Drives.
    • Forensic
      • Email ForensicAdvanced email forensic solution for cyber experts to audit, analyze, or investigate emails & gather evidences.
      • Log Analyzer for MySQLAnalyze forensic details of MySQL server database log files such as Redo, General Query, and Binary Log.
      • Exchange AuditorExchange Server monitoring solution to automate audits, scans and generate reports ìn real-time.
      • Log Analyzer for MS SQLTrack & analyze MS SQL Server database transactions log files.
  • Our Partners
  • Lab Services
  • Support
  • About

Trending Searches

Data Recovery

Photo Recovery

Video Repair

iPhone Data Recovery

File Erasure Software

Exchange Repair

OST to PST

PST Repair

Raid Recovery

MS SQL Repair

MySQL Repair 4 minute read

How to Repair MySQL Database using phpMyAdmin?

Charanjeet Kaur
Written By
Charanjeet Kaur
Kuljeet Singh
Approved By
Kuljeet Singh
stellar calander
Updated on
January 23rd, 2023

Summary: Several factors like faulty hardware, bugs in MySQL software, server crash, etc., can turn a MySQL database corrupt. A corrupt database becomes inaccessible, and you might get errors when trying to open the database. This blog will outline the errors you may encounter due to MySQL database corruption. Also, it will discuss the steps to repair the MySQL database using phpMyAdmin easily.

Free Download for Windows Free Download for Windows

Contents

  • Steps to Repair MySQL Database using phpMyAdmin
  • Still Can’t Access the MySQL Database?
  • Conclusion

When trying to open a corrupt MySQL database, you may receive any of these errors:

  • Table ‘./mysql/user’ is marked as crashed and should be repaired
  • Unexpected end of file
  • Got error ### from table handler

Irrespective of the error message you encounter, you must repair the database to restore all its components.

Steps to Repair MySQL Database using phpMyAdmin

Note: We will be accessing phpMyAdmin using XAMPP application for Windows or open the url ‘Read More’ to start using it. Or, you may access phpMyAdmin using cPanel.  

  • Once phpMyAdmin opens, click the Databases tab from the main menu. This will open a list of MySQL databases.
select databases in phpmyadmin
  • Click the corrupt database.
open databases
  • A list of all the tables in MySQL database will open. Click Check All to select and repair all the tables. Once the tables are selected, expand the ‘With selected:’ drop-down, then select the Repair Table option.

Note:To repair a specific table, check only that table. In our case, we’ve selected two tables ‘Customer’ that we want to repair and recover.

repair myisam table

The phpMyAdmin will run the query for the MySQL tables. On successful completion of the repair process, a message indicating that the database tables are repaired will appear.

Note:You cannot repair InnoDB table(s) using the ‘REPAIR TABLE’ option. On trying to repair an InnoDB table, you will get an error “the storage engine doesn’t support repair.” To fix a corrupted InnoDB table, refer to this blog.

Still Can’t Access the MySQL Database?

While the above method might work, it has certain shortcomings. It only allows repairing a single database at a time which can be time-consuming. Also, fixing corruption in a large database may require additional time, thereby exceeding database downtime. Further, the method may fail to repair a severely corrupt MySQL database. And, forcing InnoDB recovery with a value greater than ’4’ involves data loss risk.

Consider using a specialized MySQL database repair tool like Stellar Repair for MySQL to reduce database downtime and get back all the data. The tool can repair severely corrupt MySQL databases. Also, it supports repairing both MyISAM as well as InnoDB tables. In addition, the software also helps recover all the data while preserving the original table structure and formatting.

Steps to repair MySQL databases using the software are as follows:

  • Download the demo version of Stellar Repair for MySQL software.
free download
  • Launch the software after completing the downloading and installation process. This will open the software home page with the following Instruction dialog box. Click OK.
select corrupt mysql db in software
  • Select the version of your corrupt MySQL database, then click Browse to select the data folder containing the databases you want to repair. Click OK.
select mysql data folder
  • The software displays a list of all the MySQL databases. By default, all the databases are selected. You may also choose specific database(s) to be repaired, then click Repair.
select db to be repaired
  • Click OK when the ‘Repair Complete’ message box opens.
repair complete
  • A preview of all the recoverable tables, views, triggers, etc. gets displayed on the left pane of the software window. Click on an item to view its contents in the right pane.
recoverable mysql data
  • Click Save on File menu to save the repaired data.
  • Select the file format to save the repaired data, enter details to connect to your MySQL server, then click Save.
save db options
  • A ‘Saving process completed’ message is displayed on completion of the saving process. Click OK.
saving completed

Open your MySQL folder and view the repaired file.

Conclusion

This blog discussed the process of repairing a MySQL database using phpMyAdmin. But using this method has some downsides. It only supports repairing MyISAM tables. You need to separately force_innodb_recovery to recover data from corrupt InnoDB tables. Further, you can repair databases one by one. You can overcome these limitations by using Stellar Repair for MySQL software. It helps repair both MyISAM and InnoDB tables. Also, it saves time by allowing you to fix multiple databases simultaneously.

About The Author

Charanjeet

Charanjeet is a Technical Content Writer at Stellar®who specializes in writing about databases, e-mail recovery, and e-mail migration solutions. She loves researching and developing content that helps database administrators, organizations and novices to fix multiple problems related to MS SQL and MySQL databases and Microsoft Exchange.

Best Selling Products

Stellar Data Recovery Professional for Windows

Stellar Data Recovery Professional for Windows

Stellar Data Recovery has the right Windows Recovery tool for all your data recovery

Read More
Stellar Data Recovery Professional for Mac

Stellar Data Recovery Professional for Mac

Stellar Data Recovery for Mac program performs safe..

 

Read More
Stellar Photo Recovery

Stellar Photo Recovery

A comprehensive photo recovery software to restore photos, music & video files

 

Read More
Stellar Repair for Video

Stellar Repair for Video

Powerful video repair tool for repairing corrupt or damaged MOV and other video files

 

Read More

Leave a comment Cancel reply

Your email address will not be published. Required fields are marked *

Image Captcha
Refresh Image Captcha

Enter Captcha Here :

Table of Contents    arrow

  1. Steps to Repair MySQL Database using phpMyAdmin
  2. Still Can’t Access the MySQL Database?
  3. Conclusion

Categories

offer banner

Related Posts

related post
MySQL Repair

How to Check Database Corruption in MySQL?

Stellar Author Bharat Bhushan March 10, 2023 Read More
related post
MySQL Repair

Database Page Corruption on Disk or a Failed File Read of a Page in MySQL

Stellar Author Bharat Bhushan March 6, 2023 Read More
related post
MySQL Repair

[Fixed] MySQL innodb_force_recovery is Not Working Properly

Stellar Author Charanjeet Kaur January 21, 2022 Read More

Free Trial for 60 Days

Technology You Can Trust A Brand Present Across The Globe

  • tuv1
  • tuv2
  • Nist
  • hipa

Stellar Official Website

Stellar Data Recovery Inc.
48 Bridge Street Metuchen,
New Jersey 08840,
United States

ALSO AVAILABLE AT

ALSO AVAILABLE AT

About

  • About us
  • Career
  • ISMS Policy
  • Privacy Policy
  • Terms of Use
  • License Policy
  • Refund Policy
  • End User License Agreement

RESOURCES

  • Blog
  • Articles
  • Product Videos
  • Knowledge Base
  • Case Studies
  • Whitepapers
  • Software Catalog

NEWS & EVENTS

  • News
  • Events

PARTNERS

  • Affiliates
  • Resellers
  • Distributors

Useful Links

  • Contact Us
  • Support
  • Special Offers
  • Student Discounts
  • Awards & Reviews
  • Downloads
  • Store
  • Sitemap

Stellar & Stellar Data Recovery are Registered Trademarks of Stellar Information Technology Pvt. Ltd. © Copyright 2023 Stellar Information Technology Pvt. Ltd. All Trademarks Acknowledged.

Follow Us Facebook Twitter Linkedin Youtube

  • Notron
  • dcma

Subscribe to our newsletter!

Its good time to subscribe and get the latest promtion

With subscribing you agree with our Terms & Conditions

This website uses cookies in order to provide you with the best possible experience and to monitor and improve the performance of the site in accordance with our cookie policy. You can reject cookies at any time in your browser settings.

cookies-cross
Got it