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 Workbenc
I had this issue. Turns out Workbench is just a UI tool - it doesn't install MySQL - so there is nothing for it to connect to.
You need to download and install MySQL first then install Workbench.
Go to C:\cd Program Files\MySQL\MySQL Server 5.X\bin directory and run file "MySQLInstanceConfig.exe"
and set port to 10061
I had the same Problem.
I think the Problem showed because I did not create a specific user for the Database during the configuration while installing everything. Thought i could do it later. I only entered a server password.
After re-installation and creating an user during the installation everything works now.
I know this is an old question, but I had this problem and was not able to get the command line solution to work.
Instead, I went into the MySQL installer tool and reconfigured my server. I did not change any settings, just went through the menu and clicked the same buttons on every item, then restarted the server.
This got the server back up and running no problem. After all the searching, this helped me the most.
Sorry to bump an old question, I was having the same problem as OP, to fix this problem all I did was to download the MSI Installer and only reinstalled the server and went through the configuration which is pretty straightforward.
Like this.
$ sudo vim /etc/mysql/my.cnf
#bind-address = XXX.XXX.XXX.XXX