fixes mysql not run bugs