首页> 开发问题 >后端问题 后端问题
windows下mysql中文乱码, 配置解决方法
作者:小萝卜 2019-12-10 【 漏洞BUG 】 浏览 2268
简介
内容源自:windows下mysql中文乱码, 配置解决方法
解决方法:打开mysql安装目录,打开my.ini文件(如果只有my-default.ini文件,先将其改名为my.ini!!!)

修改内里配置:
[mysqld] character-set-server=utf8 [client] default-character-set=utf8 [mysql] default-character-set=utf8
如图:

修改完成后重启MySQL服务:(右键重新启动)

完成:

很赞哦! (0)
相关文章
- tp3.2插入数据时SQLSTATE[HY000]: General error
- laravel通过composer安装报错了The 'https://repo.packagist.org/p/laravel/laravel.json' file could not be downloaded: failed to open stream
- PHP查询报错, Fatal error: Allowed memory size of 134217728 bytes exhausted
- TP6报错致命错误: Cannot use object of type stdClass as array
- 错误400-The request sent by the client was syntactically incorrect
- 语法解析错误: syntax error, unexpected 'unset' (T_UNSET)
- [vs code] 运行go包提示:Code is already running!
- Site error: the ionCube PHP Loader needs to be installed.
- 使用mysql_list_tables()方法报错
- Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in
