473,320 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Can't connect on localhost even though it is listening

dlite922
1,584 Expert 1GB
I've verified 7 ways from Sunday that mysql service is running and listening on port 3306.

I have ActivePorts, which is a live monitor of connections on your windows machine. Mysql and mysql-nt are listening on their default ports.

I'm not sure what I did over the past few month since I have not connected to the command line, but I can't seem to connect.

I installed drupal and was able to install (create DB) during which time I was not able to command-line in.

I uninstalled mysql and reinstalled on a completely different hard drive/directory. Same issue.

I've googled all I could but my problem is unique but error message is not.

So when you see this error:
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)


You do the following steps:

1. Check MySQL service is running.......CHECK!
2. Check that it's listening on some port ....3306 CHECK!
3. Try to telnet on that port.....OOPS!

Can't telnet. Don't know why? I'm out of ideas guys. MySQL is started and listening on port 3306, why can't I connect to it?

Thanks for any help,




Dan
Jul 11 '10 #1
2 1727
You got a firewall it could be that stopping it?
Jul 11 '10 #2
dlite922
1,584 Expert 1GB
Nope, no firewall.

I did forget to mention that The MySQL Configuration Utility always froze on the last step, "Applying Security Settings" and had to kill the process, but anyway...

UPDATE:
This problem went away. Not sure what I did or what caused it to act up, but here's a list of events actions after OP.

1. Ran the config tool again, this time opt to not do networking and changed the port to 3333.

2. Again it froze on the last step, "Apply Config Setting" and I killed it.

3. Confirmed MySQL was running and listening on the new port 3333.

4. Attempted to log in on that port and got an Access Denied message this time.

5. Rebooted the PC and I got a weird message saying I don't have permission to do this, I thought i was hacked at this point seeing remote connections on a series of consecutive ports, so I unplugged the PC and rebooted.

6. It froze after it had rebooted and wanted to go into stand by (i.e. got the frozen message "Preparing to go into stand by...") even though my computer is not configured to go into stand by or hibernation. It's always on and the OS has always been stable.

7. Rebooted once again and everything started working fine. I was able to log in that gave me an Access denied message before.

8. Changed the port back to 3306 and continued to work.

It's working now and I don't have much time to spend on it since I'm getting a new server anyway.

I'm not sure if the above is any helpful for anybody, but that's what happened to me.

Cheers,


Dan
Jul 12 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Abby Lee | last post by:
My page runs fine...I just get the yeld sign with a "!" in it. Ok, I asked this question in the VBscript group and they tell me it's a JavaScript issue even though I don't get the error until I...
6
by: tony010409020622 | last post by:
My WebForm1.aspx works fine when I connect via localhost, AND when I connect using the IP address. HOWEVER, NO ONE ELSE can connect using my IP address. Capitalization is correct, Firewall is off,...
2
by: wajih.boukaram | last post by:
Hi I've been using asp.net for a couple of days now and i think I've gotten the hang of things I do have a problem when using HttpWebRequest: i request a page from a remote server and this...
2
by: yodboy | last post by:
hi there Im going nuts - any help appreciated trying to connect to access db over a network so far - I can connect to the db using the same odbc with excel I can connect to a copy of the...
0
by: service0086 | last post by:
Calvin Klein undergarments have a prominent presence on its website. This brand is quite popular among modern men. They are made from finest and softest fabrics to give that comfort you desire for....
0
by: service0031 | last post by:
Housekeeping is an interesting job or career where things are always changing, and even though you may work in a less than clean environment, you are required to always look clean and professional....
2
by: alag20 | last post by:
Hi, This is another issue and not related with the other Q I posted for proxy. I am implementing a MTOM server similar to example here This works fine on my local machine but as soon as I...
5
by: FalconIA | last post by:
After I updated php from 5.3.0 to 5.3.2, mysql_connect cannot connect localhost but 127.0.0.1. It shows: Warning: mysql_connect() : A connection attempt failed because the connected party did not...
1
oranoos3000
by: oranoos3000 | last post by:
hi i read below text and i understand what say but i dont identify meaning of this setence preg_match may not fail on 4 and 5 octet sequences, even though they are not supported by the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.