2

I am trying to connect to mysql server XAMP in mac using python flask-mysql, when I run it I got this error :

OperationalError: (2002, "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)")

I know that they are lot of similar question, I have : /Application/XAMPP/xamppfiles/etc/my.cnf that has this line :

socket      = /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock

but when I went to : /Applications/XAMPP/xamppfiles/var/mysql/

I did not see a file called :

mysql.sock

What should I do?

codingEnthusiast
  • 3,800
  • 2
  • 25
  • 37
Bouchaib Mounir
  • 1,293
  • 2
  • 14
  • 16

0 Answers0