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
I encountered a similar problem. I am using WinNMP. When I started it, MariaDB was also not running and prompts "Can't connect to MySQL server on '127.0.0.1' (10061) (2003)" whenever I try to connect to a database.
Just want to help. For WinNMP users like me, this worked for me:
msyqld
installer located at "C:\WinNMP\bin\MariaDB\bin"
.Hope this helps someone! :D
If you have already created a localhost connection and its still showing can not connect then goto taskbar and find the MySQL notifier icon. Click on that and check whether your connection name is running or stopped. If its stopped then start or restart. I was facing the same issue but it fixed my problem.
To re-iterate what Jens wrote in more current code, first open the Command Prompt with Administrator access by right-clicking the Command Prompt icon and select "Run as administrator." Then cut and paste the following into the Command Prompt at the C:> directory level:
"C:\Program Files (x86)\MySQL\MySQL Server 5.6\bin\mysqld" --install
You may have to change the name of the folder depending on where MySQL is installed and what version it is.
(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:
In Windows goto task-manager >"services" and check that "MySQL" is runing. If not
Right click on it ->open services->MySQL-> startup type -> 'Automatic' -> apply and OK. this is for windows 10 MySql 5.7
I know that there are a lot of answers to this question already already but i wanted to share my experience as none of the answers provided fixed this issue for me.
After about a day of exploring different solutions I believe the issue was that I have recently installed XAMPP and it was interfering with the MySQL workbench. I have tried changing the port numbers however this hasn't helped, and it seems that both programs are sharing configuration files. Repairing MySQL in the Control Panel didn't resolve it, so now I am uninstalling MySQL and plan to reinstall it. Another potential solution maybe to uninstall XAMPP however the config files may either be deleted, or left in the xampp folder instead of the MySQL folder by doing so.