add mysql connect test function
add mysql connect test function and remove result dir