MySQL database problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • solonline
    Confirmed User
    • Jan 2003
    • 718

    #1

    MySQL database problem

    Damnation a BB we run is throwing up a shit load of errors - seems only to have started the past hour or so. I know zero about this kind of thing, so am kinda stuck, when trying to post
    im pulling this error :

    Invalid SQL: INSERT INTO userfield (userid,field5,field1,field2,field3,field4) VALUES (10710,'text,'','','','') mysql error: Got error 28 from table handler
    mysql error number: 1030


    and when trying to run standard admin commands such as mass prune I get this :

    Invalid SQL: DELETE FROM searchindex WHERE wordid IN (0,155,16063,29715,42358) AND postid=857986
    mysql error: Can't find file: 'searchindex.MYD' (errno: 2)

    mysql error number: 1017

    Date: Saturday 16th of October 2004 11:41:50 AM
    Script: http// url
    Referer: http://url

    If anybody has any ideas on what could be the problem please let me know.

    thanks
  • SMG
    Confirmed User
    • Aug 2003
    • 1798

    #2
    sounds like your database crashed ... for starters:
    REPAIR TABLE userfield;
    MAYBE REPAIR TABLE searchindex;
    as long as theyre INNODB tables.
    otherwise you gotta go in shell and use isamchk
    TGP Webmasters: sign up for the top 100 tgp list!
    Submit galleries
    If you add me to icq (title) make sure to mention GFY or I'll think you're a bot and deny you.

    Comment

    • Scherfi
      Confirmed User
      • Jun 2003
      • 868

      #3
      Originally posted by solonline
      VALUES (10710,'text,'','','','')
      text is missing this: '

      hth. good luck.
      http://www.fastthumber.com

      Comment

      • Serge Litehead
        Confirmed User
        • Dec 2002
        • 5190

        #4
        Originally posted by Scherfi
        text is missing this: '

        hth. good luck.
        nice catch

        Comment

        • JSA Matt
          So Fucking Banned
          • Aug 2003
          • 5464

          #5
          Looks like your tables are corrupt, try running the REPAIR command on them or if you have root do this:

          Kill the mysql process and make sure it is not running (mysqld)... you can either use the mysql.sh stop command or kill PID

          cd into the directory where your database files are located and run

          myisamchk -r */*.MYI

          this should repair all your indexes

          Comment

          • Scherfi
            Confirmed User
            • Jun 2003
            • 868

            #6
            isn't "error 28" out of memory or something like that?

            http://forums.devshed.com/archive/t-124674
            http://www.fastthumber.com

            Comment

            • solonline
              Confirmed User
              • Jan 2003
              • 718

              #7
              ok thanks looking into all these now - help mucho appreciated

              Damn im crap at such things as this but learn as go along cheers

              Comment

              • solonline
                Confirmed User
                • Jan 2003
                • 718

                #8
                Originally posted by Scherfi
                isn't "error 28" out of memory or something like that?

                http://forums.devshed.com/archive/t-124674
                Ah now that rings a bell when I had a similar meltdown last year -
                checking this now cheers

                Comment

                • JSA Matt
                  So Fucking Banned
                  • Aug 2003
                  • 5464

                  #9
                  Originally posted by Scherfi
                  isn't "error 28" out of memory or something like that?

                  http://forums.devshed.com/archive/t-124674
                  Yes, which is why the tables are now corrupted... first fix the memory leak then rebuild the tables

                  Comment

                  • Scherfi
                    Confirmed User
                    • Jun 2003
                    • 868

                    #10
                    see, i love gfy for that
                    hope you get your problem solved.
                    good luck!
                    http://www.fastthumber.com

                    Comment

                    Working...