SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jul 2008
    Location
    India
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up Mysql connect error temporary issue

    In my PHP/MySql Website now very frequently getting this error.

    Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in /usr/home/mydomain.com/includes/db.inc.php on line 8
    Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11)

    This error appears sometimes only, other times everything is fine. Frequency of the error has increased alarmingly last few days. Any idea what could be the problem?

    Thanks in advance

  2. #2
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Location
    Poole, UK
    Posts
    5,072
    Mentioned
    103 Post(s)
    Tagged
    0 Thread(s)
    Is the site on a shared hosting? If it is there could be another site on the same server eating lots of server resources like number of available connections to MySQL
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator

  3. #3
    SitePoint Member
    Join Date
    Jul 2008
    Location
    India
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its a dedicated server and site has large no users/day and DB size is also high now.Any idea increasing which all values could solve the problem?

  4. #4
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is mysql crashing? Check its error log.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •