fix configure problems for mysqlsgt
add log for mysql