1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

XAMPP-MySQL error: #2002 - The server is not responding (or ...

Discussion in 'Site & Server Administration' started by KingCobra, Mar 7, 2014.

  1. #1
    Dear friends,

    I am using Windows Web server 2008 and XAMPP 1.7.4.
    My mysql server not running and gives the following message:

    #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)

    Please help me how can solve it.
     
    KingCobra, Mar 7, 2014 IP
  2. phptechie

    phptechie Well-Known Member

    Messages:
    885
    Likes Received:
    10
    Best Answers:
    2
    Trophy Points:
    165
    #2
    If your Mysql server is not running , then it will respond this error.

    So try to locate my.cnf & check the configurations & modify if you find any discrepancy.

    If you are trying to access mysql via php script , then make sure your php-mysql library is enabled.

    Then restart both Apache & Mysql server & try accessing it again.
     
    phptechie, Mar 7, 2014 IP
  3. KingCobra

    KingCobra Well-Known Member

    Messages:
    289
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #3
    @phptechie ,
    Yes I am trying to connect via php. But from XAMPP control panel I can't run it.
    How I check if php-mysql library enable or not?
    I have sent you a private message too.
     
    KingCobra, Mar 7, 2014 IP
  4. HassanKhalid

    HassanKhalid Active Member

    Messages:
    158
    Likes Received:
    6
    Best Answers:
    4
    Trophy Points:
    90
    #4
    mysql default port is 3306 can you try putting it and then try.
     
    HassanKhalid, Mar 8, 2014 IP