Solved

Corrupt table in MySQl

Posted on 2010-11-08
1
553 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now