Results 1 to 6 of 6

Thread: Database error

  1. #1

    Database error

    My client got this error:

    Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/kgmmbnet/public_html/Membership/db_mysql.php on line 104
    Database error: cannot connect to Database Lost connection to MySQL server at 'reading initial communication packet', system error: 111
    MySQL Error
    Session halted.

    Is there any advise on this error?

  2. #2
    Join Date
    May 2008
    Location
    Citrus Heights, CA
    Posts
    1,716
    How about sharing whats on and around line 104...

    How about a reboot with your fingers crossed? </standardhelpdeskresponse>
    Best Regards,

    Mark

  3. #3
    Join Date
    Nov 2009
    Location
    Nasik,India
    Posts
    252
    Hi,

    can u able to connect to mysql and if u are not able to connect then it will give error like this.........

  4. #4
    Join Date
    Oct 2009
    Location
    India
    Posts
    85
    Hello,


    Please restart the mysql service .
    Code:
    service mysql restart 
    or
    /etc/init.d/mysqld restart
    If it doesn't start , check the disk usage of your server using
    Code:
     df -h
    Ramshad..!##

  5. #5
    Join Date
    Sep 2009
    Posts
    1,794
    Or first, kill all running mysql processes with "killall -9 mysql" after that restart the mysql service.
    LVPSHosting.com|Virtual Private Servers|Dedicated Servers|
    Managed Hosting Solution|24/7/365 Support
    Datacentar and servers location: Holland, Europe

  6. #6
    Join Date
    Mar 2009
    Posts
    2,218
    Quote Originally Posted by tnnhost View Post
    My client got this error:

    Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/kgmmbnet/public_html/Membership/db_mysql.php on line 104
    Database error: cannot connect to Database Lost connection to MySQL server at 'reading initial communication packet', system error: 111
    MySQL Error
    Session halted.

    Is there any advise on this error?
    1) Was the client code working then suddenly failed? Or has it never worked on that server?

    2) If not, check how they are trying to connect. Maybe they are trying to connect to a local SQL server using the server name or IP address instead of localhost.

Similar Threads

  1. MDB2 Error: database error
    By nura235 in forum Hosting Security and Technology
    Replies: 5
    Last Post: 09-12-2009, 12:01 PM
  2. Database Error - Was it just me?
    By YYamagishi in forum WHT Announcements, Feedback and Questions
    Replies: 11
    Last Post: 09-24-2007, 04:39 AM
  3. database error
    By Saryooo in forum Hosting Security and Technology
    Replies: 4
    Last Post: 04-09-2006, 01:53 PM
  4. HELP! XMB Error Database No Database Selected!
    By dallassmith in forum Reseller Hosting
    Replies: 1
    Last Post: 08-20-2002, 01:33 PM

Posting Permissions

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