write_timeout(connect_timeout);error=check_connection(thd);thd->send_statement_status();if(error){// Wrong permissions#ifdef _WIN32if(vio_type(thd->get_protocol_classic()->get_vio())==VIO_TYPE_NAMEDPIPE)my_sleep(1000);/* must wait after eof() */#endifreturntrue;}/* Connect ...
my.ini 或者my.cnf The number of seconds the mysqld server is waiting for a connect packet before responding with 'Bad handshake'connect_timeout=30