Web Hosting
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2012

    Default My SQL Database error please help!

    I was running a successful (drupal) site using Mysql (I'm on Mac OS X) until I suddenly started to get the following error: "PDOException: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in db_table_exists()"

    I don't know what this means or how to fix it, but when I visit phpmyadmin I get the following message: "#2013 - Lost connection to MySQL server at 'reading initial communication packet', system error: 61"

    Can someone please help, I spent hours developing this site and really need to fix these errors.

  2. #2



    The error message indicates that your Drupal website (as well as the phpMyAdmin application) cannot connect to the MySQL server. As you probably know the Drupal website uses a database to store most of the information. Please check if the MySQL server is up and running and if it accepts connections. If your website is hosted on one of our servers you should post a new support ticket and we will help you ASAP. If the website is hosted on your own server you should access the server and make sure that the MySQL service is running. If it is a Linux server you can use the following command to restart the MySQL server (the command is valid for most of the popular Linux distributions):

    /etc/init.d/mysql restart

    In my opinion, it will be best to contact the System Administrator who is responsible for managing your server. He/she should be able to resolve the issue.
    SiteGround Technical Support Team
    Siteground Web Hosting

    Join us on Facebook
    Follow us on Twitter

Similar Threads

  1. SQL Syntax Error - ?
    By Fortuno in forum Hosting Related Questions
    Replies: 3
    Last Post: 05-18-2011, 05:14 AM
  2. SQL database
    By NX01class in forum Other Software and Applications
    Replies: 7
    Last Post: 11-20-2008, 12:59 AM
  3. PhpBB3 and SQL Error With User Registration
    By Mad Jack in forum Hosting Related Questions
    Replies: 1
    Last Post: 05-19-2008, 02:07 AM
  4. sql database
    By hankeester in forum Hosting Related Questions
    Replies: 0
    Last Post: 07-05-2006, 04:55 PM

Tags for this Thread

Posting Permissions

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