Announcement

Collapse
No announcement yet.

DataBase class_core.php on line 311

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #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


    • #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:
      http://ana-souri.com
      VB:
      http://ana-souri.com/kalamna

      Comment


      • #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


        • #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:

          http://www.vbulletin.com/forum/showt...threadid=44909

          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


          • #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...
            X