def mysql_connect(sockfile):
 (user, passwd) = mysqlconf.get_user_password(sockfile)
 return MySQLdb.connect(unix_socket=sockfile, connect_timeout=CONNECT_TIMEOUT, user=user, passwd=passwd)

def mysql_connect ( sockfile ) : ( user , passwd ) = mysqlconf . get_user_password ( sockfile ) return MySQLdb . connect ( unix_socket = sockfile , connect_timeout = CONNECT_TIMEOUT , user = user , passwd = passwd )
connects to the mysql server using the specified socket file .