create user 'myclient'@'%' identified by 'myclient'; //创建myclient; % 任意登入ip 密码myclient grant select,insert,update,delete on MYDATABASE.* to myclient; //授权 show variables like 'character_set_%'; //查看字符集编码 show variables like 'collation_%'; //查看校对集编码 set character_set_client=utf8; set character_set_connection=utf8; set character_set_database=utf8; set character_set_results=utf8; set character_set_server=utf8; set character_set_system=utf8; set collation_connection=utf8; set collation_database=utf8; set collation_server=utf8; set global max_allowed_packet=2*1024*1024; //设置数据包大小