SQL Error: can't connect to MySQL server on 'localhost' (10061)

User, date Message
User: Dariuszz
Posted: Sat, 09 Jan 10 00:15
Category: Creating a connection
24 posts since Sat, 09 Jan 10
I want to make my own private server for World of Warcraft but I've got an issue on connecting with HeidiSQL. I keep getting this error:
SQL Error: can't connect to MySQL server on 'localhost' (10061)

For as long as I know I'm not making any problems.
IP: localhost
User: root
Password: ascent

and I also start MySQL.bat before using HeidiSQL.

I'd really appreciate if someone could help me.
User: Dariuszz
Posted: Sat, 09 Jan 10 00:23
24 posts since Sat, 09 Jan 10
by the way I installed the HeidiSQL 4.0 from:
http://www.heidisql.com/download.php

I've only installed one thing, the "installer" part on the site. I hope that isn't the problem.
User: anse
Posted: Sat, 09 Jan 10 00:58
1822 posts since Fri, 07 Apr 06
Right, that is definitely not the problem smile The problem is, your local MySQL server is not responding, I guess it is not runnin at all. See taskmanager and watch for mysqld.exe .
User: Dariuszz
Posted: Sat, 09 Jan 10 02:58
24 posts since Sat, 09 Jan 10
yes that one is on with around 200kb memory. Just don't get it. I was looking for the solution for hours and didn't understand what was wrong unhappy
User: Dariuszz
Posted: Sat, 09 Jan 10 02:59
24 posts since Sat, 09 Jan 10
I hope you or anyone else knows a solution
User: anse
Posted: Sat, 09 Jan 10 12:41
1822 posts since Fri, 07 Apr 06
Did you check this?
User: Dariuszz
Posted: Sat, 09 Jan 10 14:30
24 posts since Sat, 09 Jan 10
ok i see a problem now. It says I don't have a service called MySQL. Where can i download or install the service?
User: Dariuszz
Posted: Sat, 09 Jan 10 14:41
24 posts since Sat, 09 Jan 10
ah still doesn't work. Found a service but still the same error.
User: Dariuszz
Posted: Sat, 09 Jan 10 14:53
24 posts since Sat, 09 Jan 10
ok this is the thing:
i'm following this tutorial:
http://www.youtube.com/watch?v=1y5KtoQqMrc

At 3:30 he starts to login on HeidiSQL.
When he connects he enters the server. At that point I don't enter the server, but I get the error instead. Maybe this will get you an idea?
User: Dariuszz
Posted: Sat, 09 Jan 10 15:04
24 posts since Sat, 09 Jan 10
Aha now I found the solution :p
man what a stupid program.
I needed to FIRST run the service and THEN run the MySQL.bat.
Well thank you for your help anyways smile at least someone answers my questions after all happy
User: anse
Posted: Sat, 09 Jan 10 15:14
1822 posts since Fri, 07 Apr 06
Don't know what your mysql.bat should do, but it's not some standard method to get MySQL running. Normally you start the server and then you can connect via any client like HeidiSQL.
User: Dariuszz
Posted: Sat, 09 Jan 10 15:21
24 posts since Sat, 09 Jan 10
darn smiled too fast. now it doesn't work anymore. what server are you talking about?
User: Dariuszz
Posted: Sat, 09 Jan 10 15:24
24 posts since Sat, 09 Jan 10
when i open mysql.bat it says that mysql is running. i'm not used to such a things like mysql. I only play games smile
User: anse
Posted: Sat, 09 Jan 10 15:34
1822 posts since Fri, 07 Apr 06
Well no problem to play games. That should not stop you from getting into MySQL or?

I meant the MySQL server. Try to do this:
- Start -> run -> cmd.exe
- Type this into the black DOS box:
mysql -hlocalhost -uroot -hascent<Enter>
- Post here what error you get
User: Dariuszz
Posted: Sat, 09 Jan 10 15:38
24 posts since Sat, 09 Jan 10
uh my computer can't recognize mysql.
User: Dariuszz
Posted: Sat, 09 Jan 10 15:44
24 posts since Sat, 09 Jan 10
i get the same error as if i would write "asdfasfadsf" (some random letters)
User: Dariuszz
Posted: Sat, 09 Jan 10 15:48
24 posts since Sat, 09 Jan 10
well i wrote "mysql -hlocalhost -uroot -hascent" hope that was correct.
User: Dariuszz
Posted: Sat, 09 Jan 10 16:09
24 posts since Sat, 09 Jan 10
i guess mysql.bat is the server because it's in the folder called Server, but he does not load completely. It says:

Please close this command only for Shutdown.
MySQL is running, don't close this window.

Somehow before when i "found the solution" it showed more than the 2 lines.
User: mltsy
Posted: Mon, 19 Jul 10 23:55
1 posts since Mon, 19 Jul 10
Although this post is years old, just in case someone else is getting this error, as I recently did:

I unchecked the "compressed client/server protocol" checkbox and was able to connect. Not sure if that was the problem or not, because now I can check it and still log in fine, but that's all I recall changing. Although I also logged into SSH using putty and tried "mysql -uUSER_NAME -p" to test the connection between when it wasn't working and when it was, so that may have changed something as well.
User: Dariuszz
Posted: Fri, 23 Jul 10 18:14
24 posts since Sat, 09 Jan 10
It is alright now. I have a Norton antivirus from 2005 and it blocked most of the things I wanted to start. When I figured that out I turned off Norton and all worked fine. I have heard of other people also having issues with old Norton versions on recent computers. So if anyone still has got an old Norton antivirus, just delete it, download an other free antivirus and your worries are gone smile
User: dogra_vj
Posted: Fri, 30 Jul 10 09:05
2 posts since Fri, 30 Jul 10
hi..I am getting the same error altough i tried the following
- Start -> run -> cmd.exe
mysql -hlocalhost -uroot -hascent

after this I am getting "It is not recognised as internal or exteral command, operable program or batch file"

Please help

Thanks
User: anse
Posted: Fri, 30 Jul 10 12:52
1822 posts since Fri, 07 Apr 06
Man, this is of course because your mysql.exe is not located in your path environment. Just add the path and it should run. Additionally, you have two "-h" parameters which cannot be correct as h means "Host". I guess "ascent" is your password - if so that must be prefixed by "-p", not "-h":
c:\Program Files\MySQL Server XYZ\bin\mysql.exe -hlocalhost -uroot -pascent

Apart from that, you should NEVER post any password in a public forum - that's totally dumb.
User: dogra_vj
Posted: Fri, 30 Jul 10 14:54
2 posts since Fri, 30 Jul 10
Thanks for the prompt response...what I posted above was the information as per your earlier post posted on 09 Jan 10..so I am not sharing my details smile I fixed the problem by reinstalling the whole thing again saving my data files..I guess some thing was missing...now its working..Thanks for you help
 

Please login to leave a reply, or register at first.