When using a MySQL client (e.g. mysql
or phpmyadmin
) how can I determine whether it connected to the server using a Unix socket file or by using TCP/IP?
When using a MySQL client (e.g. mysql
or phpmyadmin
) how can I determine whether it connected to the server using a Unix socket file or by using TCP/IP?
\s
(orstatus
) command. The output would have a line like one of the following:Server:
, e.g.netstat
andsockstat
(in FreeBSD) can be used to obtain this information in shell.