Professional Web Applications Themes

ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost'(10061) - MySQL

I've had 4.1 installed for over a year and for all this time have been connecting successfully from Tomcat and Java stand-alone classes.. now just the other day I intalled XAMPP (for PHP development), which installs Apache and MySQL, but you can only have one MySQL server installed (or running at any rate), since they all have to connect thru port 3306 (right?) all of a sudden since am trying to connect with PHP can't connect with Tocmat either.. when try to connect from console get this error: ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) I ...

  1. #1

    Default ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost'(10061)

    I've had 4.1 installed for over a year and for all this time have been
    connecting successfully from Tomcat and Java stand-alone classes.. now
    just the other day I intalled XAMPP (for PHP development), which
    installs Apache and MySQL, but you can only have one MySQL server
    installed (or running at any rate), since they all have to connect thru
    port 3306 (right?)

    all of a sudden since am trying to connect with PHP can't connect with
    Tocmat either.. when try to connect from console get this error:

    ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

    I have never seen this error.. checked out an old post on this subj on
    MySQL site, someone said make sure server is turned on.. how do you turn
    it on... there are many .exe's in

    C:\Program Files\MySQL\MySQL Server 4.1\bin...

    which one to turn server on? (although I have never had to do this..)
    and btw, which one is console client? (I have a shortcut icon to console
    client in my desktop, don't remember which executable is console
    client....;)

    the XAMPP installation includes MySQL, can I just delete C:\xampp\mysql
    dir so there are no conflicts? and connect to same MySQL server from
    both Tomcat and PHP? (MySQL installation that comes w/XAMPP is NOT
    turned on.. so I figure I should be able to connect no problem to my usual

    C:\Program Files\MySQL\MySQL Server 4.1

    from XAMPP.. (and from Tomcat..)

    don't get at all what's happening here, why, after using this server for
    over a year w/no problems I would have to restart server... would very
    much appreciate some help.. thank you very much..
    Frances Guest

  2. #2

    Default Re: ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost'(10061)

    PLS, how DO you restart server? if I run mysql.exe THIS is when I get
    error.. I need to restart server but get 2003 error when am trying to
    restart server.. don't undersand at all what is happening here.. (and
    what is mysqld.exe?) thanks again...


    Frances wrote:
    > I've had 4.1 installed for over a year and for all this time have been
    > connecting successfully from Tomcat and Java stand-alone classes.. now
    > just the other day I intalled XAMPP (for PHP development), which
    > installs Apache and MySQL, but you can only have one MySQL server
    > installed (or running at any rate), since they all have to connect thru
    > port 3306 (right?)
    >
    > all of a sudden since am trying to connect with PHP can't connect with
    > Tocmat either.. when try to connect from console get this error:
    >
    > ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
    >
    > I have never seen this error.. checked out an old post on this subj on
    > MySQL site, someone said make sure server is turned on.. how do you turn
    > it on... there are many .exe's in
    >
    > C:\Program Files\MySQL\MySQL Server 4.1\bin...
    >
    > which one to turn server on? (although I have never had to do this..)
    > and btw, which one is console client? (I have a shortcut icon to console
    > client in my desktop, don't remember which executable is console
    > client....;)
    >
    > the XAMPP installation includes MySQL, can I just delete C:\xampp\mysql
    > dir so there are no conflicts? and connect to same MySQL server from
    > both Tomcat and PHP? (MySQL installation that comes w/XAMPP is NOT
    > turned on.. so I figure I should be able to connect no problem to my usual
    >
    > C:\Program Files\MySQL\MySQL Server 4.1
    >
    > from XAMPP.. (and from Tomcat..)
    >
    > don't get at all what's happening here, why, after using this server for
    > over a year w/no problems I would have to restart server... would very
    > much appreciate some help.. thank you very much..
    Frances Guest

Similar Threads

  1. Replies: 5
    Last Post: September 12th, 10:46 PM
  2. Replies: 0
    Last Post: January 29th, 02:03 PM
  3. Replies: 1
    Last Post: January 27th, 02:49 AM
  4. Replies: 0
    Last Post: January 24th, 10:55 PM
  5. Unknown MySQL Server Host 'localhost '
    By jason mazzotta in forum PHP Development
    Replies: 1
    Last Post: December 7th, 04:15 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139