Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL Workbench 5.2 CE, Windows 7, "Can't connect to MySQL Server on 127.0.0.1 (10061)"

I've seen this problem asked a bunch of times on here but every solution posted hasn't been helpful for me.

I just got the x86 install and installed MySQL Workbench 5.2 CE on my Computer.

After that I tried to create a New Server Instance or New Connection using localhost as the hostname, I've tried Port 3306 (and trying no port) and not putting a password for root or Default Schema.

I get the error message "Can't connect to MySQL server on '127.0.0.1' (10061)" both times.

I read a possible problem is that the MySQL Server isn't running so I tried looking for mysqld in my MySQL Workbench 5.2 CE folder but it isn't there (there isn't a bin folder either).

It's frustrating since all I want to do is create a small application that connects to MySQL Workbench for a school project (though I may use MySQL later on).

Any help would be very much appreciated. Thanks.

like image 732
Angelo Rivera Avatar asked Jun 21 '13 02:06

Angelo Rivera


2 Answers

I had the same problem and solved it as follows.

  1. Search for 'Services' in the Windows Search Bar.
  2. Click on 'Services', which should be the only hit.
  3. Scroll down to 'MySQL56'.
  4. Right-click on this item and hit 'Start' or 'Restart'.

That's it! Easy as pie.

like image 121
Gyan Veda Avatar answered Sep 23 '22 12:09

Gyan Veda


It is indeed the case that your MySQL Server isn't running. bin is not in Workbench, its in MySQL Server directory. To start the MySQL Server ( I am assuming default installation path).

Open command prompt. Navigate to MySQL server directory using command prompt.

C:\cd Program Files\MySQL\MySQL Server 5.X\bin

Once inside bin type in:

C:\Program Files\MySQL\MySQL Server 5.X\bin :> mysqld --console

The SQL Server will start-up. Do not close this command prompt. Use Workbench utilities as you usually do in another command prompt.

If this doesn't work make sure you have MySQL Server installed on your system as Workbench is just a front end.

like image 24
user2339071 Avatar answered Sep 24 '22 12:09

user2339071