I know this question was asked a lot before but I tried some of the solutions which were given and nothing worked..
I have downloaded MySQL Workbench 6.1 on
(Windows) If you have already installed MySQL server
cd C:\Program Files\MySQL\MySQL Server X.X\bin
mysqld --install
and still cannot connect, then the service did not start automatically. Just try
Start > Search "services"
and scroll down until you see "MySQLXX", where the XX represents the MySQL Server version. If the Status isn't "Started", then
Right Click > Start
If you are here you should be golden: