Added option to generate mysql core file for debugging and support