解析mysql修改为utf8后仍然有乱码的问题
时间:2024-01-14 14:36:09
解决方法:
1、找到mysql安装目录c:\Program Files\MySQL\MySQL Server 5.5下的my.ini
2、修改一下三处,注意通常只能搜索到[mysql]和[mysqld]两处,[client]处需要增加:
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld]
default-character-set=utf8
3、保存my.ini,在控制面板里找到服务,重启mysql服务。
标签:mysql,utf8,乱码
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
sql server 复制表从一个数据库到另一个数据库
2024-01-16 17:53:57
对PyTorch中inplace字段的全面理解
2022-11-15 13:52:24
Python循环实现n的全排列功能
2022-08-15 21:04:08
Django中的FBV和CBV用法详解
2023-09-15 10:41:06
![](https://img.aspxhome.com/file/2023/0/121630_0s.png)
清空所有表中的数据的存储过程
2024-01-16 11:00:08
Golang限流库与漏桶和令牌桶的使用介绍
2024-05-10 13:57:50
![](https://img.aspxhome.com/file/2023/2/127482_0s.png)
php生成图片验证码的实例讲解
2023-09-11 21:36:29
![](https://img.aspxhome.com/file/2023/4/55574_0s.png)
Vue Echarts实现柱形图从右向左滚动效果
2023-07-02 16:59:19
![](https://img.aspxhome.com/file/2023/1/139871_0s.gif)
mysql常用备份命令和shell备份脚本分享
2024-01-13 14:37:35
Python开发常用的一些开源Package分享
2022-12-10 22:00:11
Python中的作用域规则详解
2022-08-12 23:54:04
纯CSS圆角框
2009-12-11 18:57:00
![](https://img.aspxhome.com/file/UploadPic/200912/11/1-11s.png)
vue-cli3.0 脚手架搭建项目的过程详解
2023-07-02 17:05:09
![](https://img.aspxhome.com/file/2023/0/139920_0s.png)
Django中使用MySQL5.5的教程
2024-01-22 09:53:35
![](https://img.aspxhome.com/file/2023/1/71341_0s.png)
基于Python制作一个桌面宠物
2022-06-12 11:41:22
![](https://img.aspxhome.com/file/2023/2/100942_0s.jpg)
Python+Pygame实现神庙逃亡游戏
2022-06-12 16:26:28
![](https://img.aspxhome.com/file/2023/6/79506_0s.jpg)
Python图像处理之膨胀与腐蚀的操作
2022-10-07 19:47:06
![](https://img.aspxhome.com/file/2023/8/117618_0s.png)
Python图片转换成矩阵,矩阵数据转换成图片的实例
2021-03-31 23:24:35
![](https://img.aspxhome.com/file/2023/6/103766_0s.jpg)
python程序的打包分发示例详解
2023-09-26 15:25:27
python进程管理工具supervisor的安装与使用教程
2023-10-15 20:41:57