设置写入db和db返回读出结果的字符集character set https://dev.mysql.com/doc/refman/5.7/en/charset-connection.html SET NAMES 'charset_name' [COLLATE 'collation_name'] SET NAMES indicates what character set the client will use to send SQL statements to the server. Thus…
10.1.5 Connection Character Sets and Collations Several character set and collation system variables relate to a client's interaction with the server. Some of these have been mentioned in earlier sections: The server character set and collation are t…