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

后端 未结 15 1049
借酒劲吻你
借酒劲吻你 2020-12-24 09:12

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

相关标签:
15条回答
  • 2020-12-24 09:29

    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.

    0 讨论(0)
  • 2020-12-24 09:30

    Go to C:\cd Program Files\MySQL\MySQL Server 5.X\bin directory and run file "MySQLInstanceConfig.exe"

    and set port to 10061

    0 讨论(0)
  • 2020-12-24 09:31

    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.

    0 讨论(0)
  • 2020-12-24 09:31

    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.

    0 讨论(0)
  • 2020-12-24 09:32

    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.

    0 讨论(0)
  • 2020-12-24 09:33

    Like this.

    1. $ sudo vim /etc/mysql/my.cnf

    2. #bind-address = XXX.XXX.XXX.XXX

    enter image description here

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