执行SET NAMES utf8的效果等同于同时设定如下:SET character_set_client='utf8'; SET character_set_connection='utf8'; SET character_set_results='utf8';