mysql ...corrupt DB what are the options and what prevention for the future.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • longdongsilver
    Confirmed User
    • Aug 2003
    • 378

    #1

    mysql ...corrupt DB what are the options and what prevention for the future.

    Ok it seems my stxt database has some kind of corruption that the host says can't be fixed. Even the old backups will not restart for some reason, apparently corrupt too.

    What can be done aside from deleting entire thing and starting again?
    what can be done to prevent it just all happening all over again?
    Is mysql prone to this kind of thing happening?

    what other gallery rotator scripts (that dont use mysql) are available?
  • woj
    <&(©¿©)&>
    • Jul 2002
    • 47880

    #2
    you probably need a new host, not a new script...
    who do you host with now?
    Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
    Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
    Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

    Comment

    • AnniKN
      Confirmed User
      • Feb 2008
      • 1682

      #3
      I can try and fix your database, if you have a dump hit me up. (No charge)

      Comment

      • Fortress-Jay
        Registered User
        • Jul 2007
        • 29

        #4
        What you need is real time hot backups of your mysql database so if it gets corrupted you can roll back to minutes or hours before the corruption.
        Jay Silver
        Owner | 103463692 | jason [at] fortressitx.com
        __________________________________________
        FortressITX
        Experience what FULLY MANAGED really means!!
        Ask about our BONDED!! 2gbps multi-switch servers!!

        Comment

        • rowan
          Too lazy to set a custom title
          • Mar 2002
          • 17393

          #5
          The only time I've had corruption issues with mysql is when there's been a violent shutdown, in other words something like an operating system panic or a lockup, which means any pending data hasn't been fully written out to the file system. On reboot the OS fixes up the file system as best as it can but that often does result in a loss of some data, and not always just the stuff that was sitting in RAM waiting to be flushed to disk.

          I agree with woj, sounds like your host wasn't really on top of things (assuming they manage your server), unless the corruption has been around for long enough that all of the non corrupt backups have rotated out.

          Comment

          • longdongsilver
            Confirmed User
            • Aug 2003
            • 378

            #6
            thanks for helpful replies, you guys are correct i got it going again.

            The guys at stxt really do know their stuff and once i forwarded their step by step guide to the host regarding how to fix a mysql database with innodb errors. It all started working again fine. The host it seems was just trying to restart mysql from an old backed up version but they were not deleting the innodb files first ....or something like that.

            However it does seem mysql with any script is open to fucking up now and then so a more regular db backup have been scheduled.

            Comment

            • longdongsilver
              Confirmed User
              • Aug 2003
              • 378

              #7
              Originally posted by AnniKN
              I can try and fix your database, if you have a dump hit me up. (No charge)
              also a very big thanks to you for this offer, that was very kind of you. thanks

              Comment

              • Godsmack
                Confirmed User
                • Apr 2004
                • 4525

                #8
                Resolved, thanks for the kind words!
                Download the much improved Free Tube Script adult/mainstream tube solution for FREE!

                Comment

                • u-Bob
                  there's no $$$ in porn
                  • Jul 2005
                  • 33063

                  #9
                  who's the host?

                  Comment

                  • dready
                    Confirmed User
                    • Oct 2002
                    • 5247

                    #10
                    Backups.
                    ICQ: 91139591

                    Comment

                    • AnniKN
                      Confirmed User
                      • Feb 2008
                      • 1682

                      #11
                      Glad to hear it's working again and no prob! always glad to help

                      Comment

                      • Owen Pierce
                        Registered User
                        • Dec 2007
                        • 95

                        #12
                        Heh yeah, anything can corrupt. backups are crucial.
                        one backup option would be to setup a master/slave setup on mysql. then you get instant backups to any slave(s) you have setup. And of course if those are on different machines, you can take advantage of that whole situation for speed.
                        but yeah, multiple computer backups are the bare minimum.

                        Or have mysql do an UpdateLog and setup a cron to process those queries into a backup database (prolly should be myisam if it's on the same computer, so that its not in the innodb file). and clear the log. Cuz that baby will get HUGE
                        Models/Agency search: http://strongthread.com

                        Comment

                        Working...