SQL Error (2003): Can't connect to MySQL server on 'localhost' (10061)

Posted on 2011-10-19
Last Modified: 2012-05-12
Hi all,

I have added my external IP address via cPanel in order to be able to access my online MySQL server and using HeidiSQL client I'm trying to connect to it but I'm getting this error:

SQL Error (2003): Can't connect to MySQL server on 'localhost' (10061)

I'm using TCP IP to connect.

Any ideas anyone please?

Question by:error77
    LVL 8

    Expert Comment

    Did you check whether mysql service is running?
    LVL 24

    Accepted Solution

    "Can't connect to MySQL server on 'localhost'" means you are trying to connect to a MySQL server on your local machine.  Check the connection parameters on your HeidiSQL client.

    Author Comment

    Getting same error when checked localhost to point to external host
    LVL 24

    Expert Comment

    What do you mean "checked localhost to point to external host"?  Did you mean checked->changed?  Can you take a screen capture of your HeidiSQL configuration?

    Author Closing Comment

    Sorted. Thanks

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
    CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now