Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Corrupt table in MySQl

Posted on 2010-11-08
1
Medium Priority
?
566 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
[X]
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
1 Comment
 
LVL 10

Accepted Solution

by:
laneduncan earned 2000 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

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

722 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