michaelsanford
Translator, Web Developer
I was just reading my PHP manual and it says that I can refer to my MySQL database not only by IP address or host nameort but also by a socket path such as localhost:/tmp/mysql.sock which I noticed exists on my machine...
What exactly is a socket path? I'm trying to wrap my head around the way a file can act as a port. How can I determine the socket listing on my machine (and by extension, find the correct socket for MySQL). Are there advantages-performance or security-to using sockets over ports?
TIA!
What exactly is a socket path? I'm trying to wrap my head around the way a file can act as a port. How can I determine the socket listing on my machine (and by extension, find the correct socket for MySQL). Are there advantages-performance or security-to using sockets over ports?
TIA!