MYSQL database corrupt

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Subway
    Confirmed User
    • Apr 2004
    • 584

    #1

    MYSQL database corrupt

    How can i repair this, is there a neat piece of software for ?
  • Nookster
    Confirmed IT Professional
    • Nov 2005
    • 3744

    #2
    you should have made backups yo, that would have fixed your problem.
    i'll search around for you but i haven't ever been able to fix a corrupt dbase yet.
    The Best Affiliate Software, Ever.

    Comment

    • interracialtoons
      Confirmed User
      • May 2006
      • 1910

      #3
      I didn't know that could happen.

      By corrupt, do you mean the actual data or the index to the data?
      Done.

      Comment

      • psili
        Confirmed User
        • Apr 2003
        • 5526

        #4
        Can you do a mysqldump [db] > textfile.sql ?

        Or is it really fucked?

        Regardless, here's the MySQL doc on checking databases:

        http://dev.mysql.com/doc/refman/5.0/en/repair.html
        Your post count means nothing.

        Comment

        • Subway
          Confirmed User
          • Apr 2004
          • 584

          #5
          I don't know what or where it's wrong, everything works still fine but when i want to make a backup the admin panel says

          Error while backing up database webx555k_blognld

          Comment

          • Nookster
            Confirmed IT Professional
            • Nov 2005
            • 3744

            #6
            Originally posted by Subway
            I don't know what or where it's wrong, everything works still fine but when i want to make a backup the admin panel says

            Error while backing up database webx555k_blognld
            Have you tried doing a simple export yet?? If the data is still able to be pulled from the database and shown on pages you should be able to export the data fine.
            Last edited by Nookster; 02-24-2007, 01:11 PM.
            The Best Affiliate Software, Ever.

            Comment

            • Subway
              Confirmed User
              • Apr 2004
              • 584

              #7
              Is there also a way of fixing this by phpmyadmin ?

              Comment

              • Subway
                Confirmed User
                • Apr 2004
                • 584

                #8
                Originally posted by Nookster
                Have you tried doing a simple export yet??
                Export doesn't work anymore

                Comment

                • darling2
                  Confirmed User
                  • Jul 2006
                  • 345

                  #9
                  you can use the repair table command.

                  1. log into your server via ssh.
                  2. then use the mysql client to connect to the database like:
                  mysql -uYourUserNAme -pYourPassword YourDatabasename

                  3. issue this command for every broken table:
                  repair table YourTableName;

                  After this all your tables will be fixed and you can export them

                  Comment

                  • StuartD
                    Sofa King Band
                    • Jul 2002
                    • 29903

                    #10
                    Originally posted by darling2
                    you can use the repair table command.

                    1. log into your server via ssh.
                    2. then use the mysql client to connect to the database like:
                    mysql -uYourUserNAme -pYourPassword YourDatabasename

                    3. issue this command for every broken table:
                    repair table YourTableName;

                    After this all your tables will be fixed and you can export them
                    Can also be done in phpMyAdmin pretty easily if that's on there.
                    This is me on facebook
                    This is me on twitter

                    Comment

                    Working...