简体   繁体   中英

Failed to Connect to MySQL at localhost:3306 with user root Can't connect to MySQL server on '127.0.0.1' (61)

I want to install MySQLWorkbench and when I setup new connection and test it, it shows me this error message I tried all possible solutions and did not help.

在此输入图像描述

any one can help me please :(

You have to install a MySQL server locally as well, if you want to work with MySQL Workbench locally. You can download an installation package (eg for OSX) from here: http://dev.mysql.com/downloads/mysql/ .

Once you have that server installed verify that it is running by eg:

ps aux | grep mysql

which will list all processes that have "mysql" in their command line (including the grep command itself). So, you should see at least one additional entry like this:

root 10605 0,0 0,0 2448748 616 ?? S 21Jul16 0:00.02 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/xxxxxxxx.pid

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM