Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Corrupt table in MySQl

Posted on 2010-11-08
1
562 Views
Last Modified: 2012-05-10
We have Moodle 1.9.5 that uses MySQl 5.1 to hold its data.  We started having a problem with the lessons in Moodle and found out that one of our tables is corrupt.  Attached is the error message we see from our Moodle database page.  Our problem is that when we look at the database on our server there does not appear to be a managment gui or something of that nature to look at the table.  

How do we fix the table through Moodle or through MySql?  screenshot
0
Comment
Question by:andyseals
1 Comment
 
LVL 10

Accepted Solution

by:
laneduncan earned 500 total points
ID: 34087744
You can use the REPAIR TABLE command from within mysql.  Docs describe its usage here:
http://dev.mysql.com/doc/refman/5.1/en/repair-table.html

The short is:  use the following SQL
repair table mdl_lesson_attempts;

Do take a backup of your data first.

0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question