mysql_thread_safe() returns: ': 1 ***************************************************** run 1 ***************************************************** Handle count before 'mysql_init(NULL)': 19 Handle count after 'mysql_init(NULL)': 27 Handle count before 'mysql_real_connect(...)': 27 Handle count after 'mysql_real_connect(...)': 34 Handle count after 'mysql_close(...)': 34 Handle count after 'mysql_thread_end(): 33 ' ***************************************************** run 2 ***************************************************** Handle count before 'mysql_init(NULL)': 33 Handle count after 'mysql_init(NULL)': 34 Handle count before 'mysql_real_connect(...)': 34 Handle count after 'mysql_real_connect(...)': 40 Handle count after 'mysql_close(...)': 40 Handle count after 'mysql_thread_end(): 39 ' ***************************************************** run 3 ***************************************************** Handle count before 'mysql_init(NULL)': 39 Handle count after 'mysql_init(NULL)': 40 Handle count before 'mysql_real_connect(...)': 40 Handle count after 'mysql_real_connect(...)': 46 Handle count after 'mysql_close(...)': 46 Handle count after 'mysql_thread_end(): 45 ' ***************************************************** run 4 ***************************************************** Handle count before 'mysql_init(NULL)': 45 Handle count after 'mysql_init(NULL)': 46 Handle count before 'mysql_real_connect(...)': 46 Handle count after 'mysql_real_connect(...)': 52 Handle count after 'mysql_close(...)': 52 Handle count after 'mysql_thread_end(): 51 ' ***************************************************** run 5 ***************************************************** Handle count before 'mysql_init(NULL)': 51 Handle count after 'mysql_init(NULL)': 52 Handle count before 'mysql_real_connect(...)': 52 Handle count after 'mysql_real_connect(...)': 58 Handle count after 'mysql_close(...)': 58 Handle count after 'mysql_thread_end(): 57 '