Document and test MySQL socket connections, fixes #303