Community

Need to Connect to a Local MySQL Server? Use Unix Domain Socket!

(Peter Zaitsev) When connecting to a local MySQL instance, you have two commonly used methods: use TCP/IP protocol to connect to local address – “localhost” or 127.0.0.1 – or use Unix Domain Socket.