Can't connect to MySQL server on '127.0.0.1' (10061) (2003)

后端 未结 16 1136
花落未央
花落未央 2020-11-29 19:47

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

相关标签:
16条回答
  • 2020-11-29 20:29

    Looks like the mysql server is not started.

    Look to the official documentation of MySQL how you can start a service under windows.

    Install the server as a service using this command: C:> "C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld" --install

    0 讨论(0)
  • 2020-11-29 20:34

    If you have already installed MySQL on a windows machine make sure it is running as a service.. You can do that by

    Start --> services --> MySQL(ver) --> Right-Click --> Start

    0 讨论(0)
  • 2020-11-29 20:35

    I was facing the same problem, but what I did not realise is that I did not have the MySQL Server installed. You must simply install the MySQL Server.

    In order to install the MySQL server, you must run the "MySql Installer" and then press the "Add" button and then choose the "MySQL Server" in the tree.

    After doing that, run you workbench again and you'll notice that there'll already be a connection configured. Hopefully you'll be able to create a new connection or as many connections as you want.

    Best regards!

    0 讨论(0)
  • 2020-11-29 20:36

    Slightly different case, but it may help someone.

    I followed the instructions to create a secondary database instance, and I had to clone the ini file as part of that. It was failing to start the service, with the same error. Turns out notepad.exe had re-encoded the cloned ini file as UTF8-BOM, and MySQL (version 8) refused to work with it. Removing the BOM fixed the problem.

    0 讨论(0)
提交回复
热议问题