I’m trying to learn MySQL, so I downloaded MySQL v5.5 for windows 7 and chose the Developer settings. I open a command prompt, enter
mysql -u root -p
and get the following: error
2003: Can’t connect to MySQL server on ‘localhost’ (10061)
How do i fix this? I type:
sc query mysql
and get:
STATE: 1 STOPPED
I try:
sc start mysql
and get:
[SC] StartService: OpenService FAILED 5: Access is Denied.
I also checked: Control Panel:Administrative Tools:Services
MySQL55 is started, but MySQL is stopped. MySQL is looking the MySQL Server 5.1 folder, so I’m not sure why I would need it, but when I try to start it, I get:
“Windows could not start the MySQL Service on Local Computer. Error
2: They system cannot find the file specified”.
Thanks.
I couldn’t call mysql from the command prompt after about 15 hours of effort, so I quit. Instead, I installed version 4.1.22. If you go to mysql main webpage, you won’t find 4.1.22 in the archive. Instead, I searched for mysql 4.1 in google. Hopefully they haven’t removed it when you try it.
I downloaded the “Essentials Package” and chose the “typical install” option. I then went to
Start -> MySQL … MySQL Server Instance Config Wizard and chose “Install as Windows Service” and “Include Bin Directory”. There’s a drop down box where I could choose the name, like “MySQL” or something else. It complained when I chose “MySQL”, saying that I already had an installation. I changed it, then it installed. From there, I could call “mysql” from the command line.
If you can’t find v4.1 or want to use v5, something along the lines of:
http://www.devside.net/guides/windows/mysql
may work with modification, but it didn’t work after following their instructions, with the exception of using version 5.5 instead of v5.1.
Good luck.