fix crash when connect to mysql4.1