Announcement

Collapse
No announcement yet.

Invalid SQL - Can't access forums

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
    Andy
    Senior Member

  • Andy
    replied
    Originally posted by sheride View Post
    My forum has just gone over a million posts is that why it keeps crashing?
    No that would not be the reason. A more plausible reason would be a faulty hard drive or other server hardware.

    I hope you have a recent backup.

    Leave a comment:

  • Paul M
    Former Lead Developer
    vB.Com & vB.Org

  • Paul M
    replied
    You will keep getting a crashed error until its repaired ok.

    Leave a comment:

  • sheride
    New Member

  • sheride
    replied
    and the latest:

    Database error in vBulletin 4.0.2:
    Invalid SQL:
    SELECT COUNT(*) AS count FROM post WHERE dateline >= 1312696800;
    MySQL Error : Table './xx_vbulletin/post' is marked as crashed and last (automatic?) repair failed
    Error Number : 144
    Request Date : Sunday, August 7th 2011 @ 04:15:55 PM
    Error Date : Sunday, August 7th 2011 @ 04:15:56 PM

    IP Address :
    Username : Adm
    Classname : vB_Database
    MySQL Version : 5.0.92-community

    Leave a comment:

  • sheride
    New Member

  • sheride
    replied
    ran again got

    post Check Warning: Table is marked as crashed and last repair failed
    post Check Warning: Size of indexfile is: 283795456 Should be: 76315648
    post Check Warning: Size of datafile is: 416021028 Should be: 416020824
    post Check Error: Keypointers and record positions doesn't match
    post Check Warning: Found 1012993 parts Should be: 1012982 parts
    post Check Error: Corrupt

    Leave a comment:

  • sheride
    New Member

  • sheride
    replied
    got sql started and this is the message

    Table Action Message
    post Check Warning: Table is marked as crashed and last repair failed
    post Check Warning: Size of indexfile is: 283795456 Should be: 76315648
    post Check Warning: Size of datafile is: 416021028 Should be: 416020824
    post Check Error: Corrupt

    Leave a comment:

  • sheride
    New Member

  • sheride
    replied
    crashed again - same message as last night (top post) but now I can't get mysql to work? My forum has just gone over a million posts is that why it keeps crashing?



    (Waiting for mysql to restart................................................................................... ........................................finished.


    mysql has failed, please contact the sysadmin (result was "mysql is not running").

    Leave a comment:

  • sheride
    New Member

  • sheride
    replied
    fixed it - it was the post database that crashed.

    Leave a comment:

  • sheride
    New Member

  • sheride
    started a topic [Forum] Invalid SQL - Can't access forums

    Invalid SQL - Can't access forums

    Database error in vBulletin 4.0.2:
    Invalid SQL:
    SELECT
    IF(votenum >= 4, votenum, 0) AS votenum,
    IF(votenum >= 4 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
    post.pagetext AS preview,
    thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, postusername, postuserid, thread.iconid AS threadiconid,
    thread.dateline, notes, thread.visible, sticky, votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastposterid, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views,
    thread.prefixid, thread.taglist, hiddencount, deletedcount,
    user.usergroupid, user.homepage, user.options AS useroptions, IF(userlist.friend = 'yes', 1, 0) AS isfriend

    , deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
    , threadread.readtime AS threadread
    , threadredirect.expires

    FROM thread AS thread
    LEFT JOIN user AS user ON (user.userid = thread.lastposterid)
    LEFT JOIN userlist AS userlist ON (userlist.relationid = user.userid AND userlist.type = 'buddy' AND userlist.userid = 1)
    LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')

    LEFT JOIN threadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = 1)
    LEFT JOIN post AS post ON(post.postid = thread.firstpostid)

    LEFT JOIN threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)

    WHERE thread.threadid IN (0,293019,293005,293023,292959,293030,293029,293025,293024,293012,292388,293020,293015,291 245,292996,290916,293014,293013,293011,293003,293007,293001,290384,292997,292985,292980,29 2977,292975,292974,292969,252175,287750)
    ORDER BY sticky DESC, lastpost DESC;
    MySQL Error : MySQL server has gone away
    Error Number : 2006
    Request Date : Saturday, August 6th 2011 @ 07:02:56 PM
    Error Date : Saturday, August 6th 2011 @ 07:06:49 PM
    Script : http://wwwxxxxxxx
    Referrer :
    IP Address : 69.xxxxxxxx
    Username : Admin
    Classname : vB_Database
    MySQL Version :

Related Topics

Collapse

Working...
X