Run the following command in terminal:
ps -ax|grep mysql
FInd the output like this:
--socket=/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock --port=3306
Then use this path without quote in Socket path
"Applications/XAMPP/xamppfiles/var/mysql/mysql.sock"
Then click Save and connect. It will show the success message.