keen
keen

Reputation: 3011

can't connect to the mysql server on '127.0.0.1'

I am trying to connect to the mysql in MAMP using navicat.

I read that in advance settings i need to set path of mysql.sock. But i couldn't locate this file in Application/MAMP/tmp/mysql.

Questions :

Do i have to set this path ?

Any reason why this is not located in this folder ?

If i try to connect without setting this path it gives me error "Can't connect to the mysql server on '127.0.0.1' ". What could be the reason behind this?

Any help would be appreciated.

Upvotes: 1

Views: 3391

Answers (2)

Vizuet
Vizuet

Reputation: 21

Use this path:

/Applications/MAMP/tmp/mysql/mysql.sock

Upvotes: 2

keen
keen

Reputation: 3011

I solved this problem by reinstalling MAMP Pro.

Upvotes: 1

Related Questions