Sql error Please help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jovigirl
    Confirmed User
    • Apr 2003
    • 1796

    #1

    Sql error Please help

    Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /usr2/mydomain.com/web/pp-inc.php on line 58
    I cannot connect to the PhotoPost database. [$php_errormsg]

    Anyone knows how to solve this?
    Im getting stuck
    ICQ :333-548-380
  • loverboy
    When it rains, it pours
    • May 2003
    • 20609

    #2
    tried rebooting your server?

    Comment

    • scooby doo as scooby does
      Confirmed User
      • Nov 2002
      • 314

      #3
      On the 'corruption' front, could be a million and one things.

      On the 'settings' front, most likely (duh!) you have too many SQL connections open.
      Is it a busy site ? Are connections set to 'persistant' ?
      Has the default max number of 100 been reduced ?

      I would check running processes (mysqladmin proc) to see how many are using sql. Compare to your max connections setting (mysqladmin var).

      You may wanna reboot b4 you change anything, or restart mysql. Then you could try increasing the number of max connections set in my.cnf then restart mysql. (dont increase beyond your systems capacity).
      In 1904, Charles Newman-Berry connected two abacus's together using specially enhanced GrapeVine thus inventing the first Internet connection.

      NEWMAN-BERRY CASH
      Paying webmaster since 1904

      Comment

      • pantymaniac
        Confirmed User
        • Feb 2003
        • 1192

        #4
        your hosting mysql server is fucked up , contact to them if you get this message after some working days , if not , if you got this message first time you install , it can be your fault about configuring . open with txt editor and check line 58
        This place is for RENT

        Comment

        • jovigirl
          Confirmed User
          • Apr 2003
          • 1796

          #5
          Originally posted by scooby doo as scooby does
          On the 'corruption' front, could be a million and one things.

          On the 'settings' front, most likely (duh!) you have too many SQL connections open.
          Is it a busy site ? Are connections set to 'persistant' ?
          Has the default max number of 100 been reduced ?

          I would check running processes (mysqladmin proc) to see how many are using sql. Compare to your max connections setting (mysqladmin var).

          You may wanna reboot b4 you change anything, or restart mysql. Then you could try increasing the number of max connections set in my.cnf then restart mysql. (dont increase beyond your systems capacity).
          Thx its working now
          ICQ :333-548-380

          Comment

          • Why
            MFBA
            • Mar 2003
            • 7230

            #6
            Originally posted by loverboy
            tried rebooting your server?
            linux doesnt need hourly reboots like windows

            Comment

            • JDog
              Confirmed User
              • Feb 2003
              • 7453

              #7
              Originally posted by scooby doo as scooby does
              On the 'corruption' front, could be a million and one things.

              On the 'settings' front, most likely (duh!) you have too many SQL connections open.
              Is it a busy site ? Are connections set to 'persistant' ?
              Has the default max number of 100 been reduced ?
              Wouldn't be a too many connections - cuz you would get error connecting to mysql server - too many connections. I would recommend restarting mysql before rebooting, because rebooting could cause more problems.

              jDoG
              NSCash now powering ReelProfits.com
              ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD
              PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash
              NOW OFFERING OVER 60 SITES
              CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133)

              Comment

              Working...