mysql数据库乱码如何解决
解决乱码问题(一般如下):
set character_set_client = ‘utf8’; set character_set_connection = ‘utf8’; set character_set_results = ‘utf8’;
或
set names utf8;
或
在mysql的my.cnf的配置文件中修改或添加下列:
[client] default-character-set = utf8 [mysqld] character_set_server = utf8
推荐:MySQL教程
来源:PY学习网:原文地址:https://www.py.cn/article.html