Forum Moderators: coopster
i was coding a database script in php which uses mysql as backend, am not a newbie to either mysql or php, its been fun for years for me, but during my coding 5 mins before i just got
Warning: mysql_connect(): Can't connect to MySQL server on 'localhost' (10061)
I was not connected to internet so no chance of virus or so, niether any chance of configuration change issue by someone, how can this happen at once?
i restarted machine but still the same.
I am on a windows server.
Any Assistance?
Not able to login to mysql by any means
phpMyAdmin says
#2003 - The server is not responding
Does there use to be a temporary file or a log file where mysql stores some information and that limit would have exceeded?
a strange discovery.
i have an application named "php database wizard" which i think i used last time 1 year before, as just a last test before reinstalling, i ran that application and that connects to the server perfectly with standard 3306 port without any need of any change. and the connection is 100% current because it is showing all that recent data that i entered just before all that crash.
sounds strange na?
something fishy fishy going on
Thanks for being with me in bad time, that day. actually i finally found out that it was my firewall that suspected the traffic and stopped the service from responding to any and every request. I have set my firewall settings to maximum security so any and every request that is either not explicitly allowed by me is blokced. what i didnt know was that my firewall settings we also to allow firewall to judge itself and block any traffic automatically if it considers it a threat, and because my latest query was bringing back a huge amount of data for me to check worst case response time, the firewall bloked mysqld-nt.exe from usage of that port on the server and after i allowed it back to be able to use that port, it released the lock and everything went fine.
This post might not be some discussion but is surely first of all for Thanks to J , who stayed with me that time and secondly if anyone else ever encounters the same problem then they shouldnt panic before checking their firewalls.
Thanks
Kami