文字セットを指定mysql5.7

この構成では、次のように次の行を追加することができます

[mysqldを】

character_set_server = UTF8

再起動後:

「char型%」のようなMySQLの>ショー変数。
+ -------------------------- + ---------------------- ------ +
| 変数名| バリュー|
+ -------------------------- + ---------------------- ------ +
| character_set_client | UTF8 |
| character_set_connectionに| UTF8 |
| character_set_database | UTF8 |
| character_set_filesystem | バイナリ|
| character_set_results | UTF8 |
| character_set_server | UTF8 |
| character_set_system | UTF8 |
| character_sets_dir | / usr / share / mysqlの/文字セット/ |
+ -------------------------- + ---------------------- ------ +
セット内の8行(0.00秒)

おすすめ

転載: www.cnblogs.com/zhouquan-1992-04-06/p/11440287.html