the root cause is we don't call mysql_thread_init() in the connection thread see http://dev.mysql.com/doc/refman/5.0/en/mysql-thread-init.html
the root cause is we don't call mysql_thread_init() in the connection thread see http:// dev.mysql. com/doc/ refman/ 5.0/en/ mysql-thread- init.html