Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot connect to MySQL Workbench on mac. Can't connect to MySQL server on '127.0.0.1' (61) Mac Macintosh

Cannot connect to MySQL Workbench on mac. I get the following error: Could not connect, server may not be running. Can't connect to MySQL server on '127.0.0.1' (61) The help would be appreciated.

Thank You!

like image 627
user3553260 Avatar asked Sep 05 '25 03:09

user3553260


2 Answers

Ran into a similar issue and my problem was that MySQL installed itself configured to run on non-default port. I do not know the reason for that, but to find out which port MySQL is running on, run the following in MySql client:

SHOW GLOBAL VARIABLES LIKE 'PORT';
like image 122
app_sciences Avatar answered Sep 07 '25 23:09

app_sciences


Go to System preferences -> MySql and check the state of your MySql instance.

like image 21
MillaresRoo Avatar answered Sep 07 '25 22:09

MillaresRoo