linux mysql中文乱码

1. 创建数据库字符集

    

 

 

 2. 创建表字符集

    

3. 查看字符集

    show variables like '%char%';

 

 

 

4. 修改my.cnf

   添加:character_set_server= utf8

 

参考链接:https://www.cnblogs.com/wangkaihua/p/10165348.html

https://blog.csdn.net/Morning_G/article/details/89353949?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task

 

 

    

posted @ 2020-03-15 10:43  静思,随心  阅读(176)  评论(0编辑  收藏  举报