# Local 5.2.4 : Can't connect to local MySQL server through socket (macOS)

**URL:** <https://community.localwp.com/t/local-5-2-4-cant-connect-to-local-mysql-server-through-socket-macos/17420>\
**Category:** Support\
**Tags:** mac\
**Created:** [February 18, 2020, 7:01pm UTC](https://community.localwp.com/t/local-5-2-4-cant-connect-to-local-mysql-server-through-socket-macos/17420 "2020-02-18T19:01:10Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [March 16, 2020, 10:09pm UTC](https://community.localwp.com/t/local-5-2-4-cant-connect-to-local-mysql-server-through-socket-macos/17420/7 "2020-03-16T22:09:41Z")

</div>

This seems to work.

` SOCKET=$(mysqld --verbose --help | grep ^socket | awk '{print $2, $3, $4}');ln -sv $SOCKET /tmp/mysql.sock`

 ![screenshot_82](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/2/29841aad0fd6525037c32fc8f67ff6b13c63d13c.jpeg)

---

_[View the full topic](https://community.localwp.com/t/local-5-2-4-cant-connect-to-local-mysql-server-through-socket-macos/17420)._
