MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 4.50 average. Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 27th, 2001, 11:27 AM
IrinaIonela IrinaIonela is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: Lisbon
Posts: 45 IrinaIonela User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
Exclamation ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)

I've just installed mysql and while trying to launch Mysql the following error occurs:

C:\mysql\bin>mysql
ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)

Do i need to configure anything anywhere?

Thanks

Irina/Lisbon/Portugal

Reply With Quote
  #2  
Old November 27th, 2001, 12:50 PM
dcaillouet's Avatar
dcaillouet dcaillouet is offline
Big Endian
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2001
Location: Fly-over country
Posts: 1,172 dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 16 h 29 m 5 sec
Reputation Power: 29
If MySQL is running you usually get an error about the connection being refused if you have a security problem. Since your error said "Can't connect", I believe this is usually caused when MySQL is not running or you try to connect to the wrong port.

The search engine on this site will help you find a lot of answers. Go to Search, type in 2203 and you'll get about 20 hits. Take a look through those responses and see if you can find the solution. If you can't, post again with what you tried to do and we'll see if we can solve your problem.

Reply With Quote
  #3  
Old August 12th, 2003, 12:31 AM
chrissanz chrissanz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 1 chrissanz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to chrissanz
Thumbs up

I am running mysql on windows XP and fixed this error by going into
c:\mysql\bin and right clicking the "mysqld" file and choosing run as.
Choose the first option (current user etc..) and hit ok.

Reply With Quote
  #4  
Old November 20th, 2003, 10:02 AM
Galadriel Galadriel is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 1 Galadriel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by chrissanz
I am running mysql on windows XP and fixed this error by going into
c:\mysql\bin and right clicking the "mysqld" file and choosing run as.
Choose the first option (current user etc..) and hit ok.
It worked for me too. But why?

Reply With Quote
  #5  
Old January 5th, 2004, 04:27 AM
skattie22 skattie22 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 skattie22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I am having the same problem but your solution doesn't work for me.
It works fine on my old PC (win98), I copied the entire dir structure from c:\ to c:\ onto my new winXP machine.
When I run mysqld-opt.exe it does nothing. There is no mention of it in the task manager and I get the (10061) error message when trying to access it.
Tried mysqlgui.exe but same result.

Reply With Quote
  #6  
Old January 5th, 2004, 05:15 AM
skattie22 skattie22 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 skattie22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
...I have now installed mysql 4.0.17 and it's now working fine (phew!)

Reply With Quote
  #7  
Old January 6th, 2004, 07:10 AM
[ego]mouse [ego]mouse is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 13 [ego]mouse User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i'm having the same error but in a diffrent method.

My Set-up

Server -
Linux Debian (Woody)
Apache
Mysql
PHP4

all latest versions.

It's all running and working as i can get data via php pages.

Problem is i need to remote admin the server from a WinXP machine so i've downloaded the mysqlCC file and i get this error code 2003. That do i need to configure on the WinXP machine and/or Linux machine?

Reply With Quote
  #8  
Old January 8th, 2004, 01:59 PM
bnoji bnoji is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 bnoji User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Networking for mySQL is turned off by default in Debian. In your /etc/mysql/my.cnf file, just comment out the skip networking line and you should be able to connect from another box using mysqlcc.

Reply With Quote
  #9  
Old January 13th, 2004, 07:32 PM
justy324 justy324 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 4 justy324 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile

=====================================================================
Solution for WINXP !!!

The files are in the wrong place, at least with my example.
Had an old version of MYSQL.

Instruction below.(NZ)
=======================================================================

I had this problem, and this what helped me.....

I have Winxp.....

I removed the previous service, because I had an earlier version....

/bin/mysqld-nt /remove

Then I installed the service


/bin/mysqld-nt /install

Then I edited the my.ini file, by opening winMysqladmin

/bin/winmysqladmin
That command having opened the program...then you should

then select 4th tab, which is the my.ini file

You then edit the file to reflect where you had the files of MYSQL...

as the MY.ini said I had it under c:\mysql ....and I had it under
another folder altogeather....

For simplicity sake, I just copied the files from my current folder to
the specified by my.ini

This got me the access I wanted....

Very happy...

Hope this helps....

Regards Justin(James)HORT
From New Zealand, Palmy

Reply With Quote
  #10  
Old February 14th, 2004, 12:06 AM
exo_duz exo_duz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 61 exo_duz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 48 m
Reputation Power: 10
Cool WOOHOOOO it works

thanx for that justy.... works fine now thanx to you......

Reply With Quote
  #11  
Old March 17th, 2004, 11:35 AM
jokerboy jokerboy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 jokerboy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)

I had the same problem on XP pro and found I had a my.cnf file from a previous install on my c:. I deleted the fiel and everything is working fine now.
.....for now, anyway
JokerBoy

Reply With Quote
  #12  
Old March 17th, 2004, 01:01 PM
Jon Mooring Jon Mooring is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 25 Jon Mooring User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yea I had the same service problem, but ended up reformatting and THEN figuring out what was going wrong Sucked...

Reply With Quote
  #13  
Old April 17th, 2004, 03:37 AM
simres simres is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 21 simres User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation

hi
am doing project using mysql as backend .i do have the same problem.am using win2000.how can i fix this problem.please help me in this regard. i hav followed the steps told in this thread but it coudn't fix my probloem..
thanks
simres

Reply With Quote
  #14  
Old January 25th, 2005, 04:16 AM
schloss schloss is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 1 schloss User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m
Reputation Power: 0
Lightbulb

tried several things. finally deleted my.ini file and started over by extracting mysql to my basedir and i just ran mysqladmin which forced me through the process of creating the correct my.ini file that works on xp. it also installed the service.

Reply With Quote
  #15  
Old December 2nd, 2006, 07:28 PM
punarwas punarwas is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 2 punarwas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 45 sec
Reputation Power: 0
Error can't connect to mysql...

Quote:
Originally Posted by IrinaIonela
I've just installed mysql and while trying to launch Mysql the following error occurs:

C:\mysql\bin>mysql
ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)

Do i need to configure anything anywhere?

Thanks

Irina/Lisbon/Portugal


I faced similar problem.And what I did to solve this problem is:I deleted the my.ini file.To get the location of my.ini file go to command prompt and type C:\>echo %windir%.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap