Web Analytics Made Easy -
StatCounter Error 2003 - CodingForum

Announcement

Collapse
No announcement yet.

Error 2003

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error 2003

    I've searched to no avail to find a solution to my problem. Seems others have it too - but I couldn't resolve it.
    I have win XP with MySQl 4.3 running on Apache 1.3, with PHP. Up till last night it was fine, and everything I did worked OK - all on localhost, which I use for development.

    This morning the error appeared Error 2003 - Can't connect to MySQL server on localhost (10061). I've made no changes, and done nothing differently. Even uninstalled MySQL and re-installed it, without success.

    Any ideas please??

    The system has been working fine for months.

  • #2
    Welcome here !

    Do you have a firewall ? If so, check if there are requests from the webserver blocked.
    My firewall is configured to block Apache on my development when it receives inbound requests. The first error that the PHP parser then throws up, is on the mysql_connect() -function because Apche makes the request to the mySQL server and is then blocked.

    So if you have a firewall, and the error appears on all pages that open a connection, and you are siure that mySQL is running, then check your firewalls configuration. Or disconnect, shut the firewall down and request the php page
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

    Comment


    • #3
      Yes, I do have a firewall. But for testing locally, I turn the firewall off.
      I'm not trying to access the net - just using 127.0.0.1/.... whatever.

      Comment


      • #4
        try using http://localhost/ ... instead of http://127.0.0.1/
        Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

        Comment

        Working...
        X