Recognize when connecting to MySQL via socket

#18