Fixed mysql randomly crashing.