fix mysql connection error.