DataBase class_core.php on line 311

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bydosangel
    New Member
    • May 2007
    • 23

    DataBase class_core.php on line 311

    Hello

    My site Stopped Suddenley, I recived few errors in my Email, then it Stopped

    The Mail is:

    Database error in vBulletin :

    mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    /home/anasouri/public_html/kalamna/includes/class_core.php on line 311

    MySQL Error :
    Error Number :
    Request Date : Saturday, April 18th 2009 @ 07:18:23 AM
    Error Date : Saturday, April 18th 2009 @ 07:18:23 AM
    Script : http://ana-souri.com/kalamna/showthread.php?t=15480
    Referrer :
    IP Address : 66.249.71.144
    Username :
    Classname : vB_Database
    MySQL Version :
    So what the Problem may be?
    ho to solveit?
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    vB is reporting it can not connect to the database. Check with the hosting provider to find out why the MySQL server is down, or why your database can't get connected to.

    Comment

    • bydosangel
      New Member
      • May 2007
      • 23

      #3
      Thansk for the Quick reply

      i checked them before i post this Topic, they says the mysql is running...

      what makes me crazy is that the joomla script is running with no problems, but the vb is Stopped....????
      check it here:
      Free Joomla template for campaign and offer listing website - JA Campaign

      VB:

      Comment

      • Lats
        Senior Member
        • Mar 2002
        • 3671

        #4
        The error showing right now is...
        Code:
        Database error in vBulletin 3.7.4:
        Invalid SQL:
          SELECT
           user.username, (user.options &amp; 512) AS invisible, user.usergroupid,
           session.userid, session.inforum, session.lastactivity, session.badlocation,
           IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
           
          FROM session AS session
          LEFT JOIN user AS user ON(user.userid = session.userid)
          
          WHERE session.lastactivity &gt; 1222059710;
        MySQL Error   : Table 'user' is marked as crashed and should be repaired
        Error Number  : 1194
        Request Date  : Saturday, April 18th 2009 @ 08:01:50 AM
        Error Date    : Saturday, April 18th 2009 @ 08:01:50 AM
        Script        : [URL]http://ana-souri.com/kalamna/[/URL]
        Referrer      : [URL]http://www.vbulletin.com/forum/showthread.php?p=1723655#post1723655[/URL]
        IP Address    : 
        Username      : ÛíÑ ãÓÌá
        Classname     : vB_Database
        MySQL Version :
        Lats...

        Comment

        • Wayne Luke
          vBulletin Technical Support Lead
          • Aug 2000
          • 73976

          #5
          Run Repair/Optimize in the Admin CP. You may need to run it more than once to fix all errors:

          Admin Control Panel -> Maintenance -> Repair/Optimize Tables -> Check All -> Continue

          If you cannot access the Admin CP, then you can use phpMyAdmin to repair tables.

          If that doesn't work then this may be too damaged to fix with the normal methods. Please check out this thread for other ways to repair a db, particularly items #2 and 3:



          You may have to ask your host to try and repair this for you.
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment

          • bydosangel
            New Member
            • May 2007
            • 23

            #6
            Thank you Guys...

            Real Thanks From land of Civilizations Syria.....

            I hope i can help you in something someday...

            the Hosting company hostforweb "witch rocks" did a mysql repaid method and the forum worked right away

            Thanks

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...