请在mysql配置文件修
时间: 2024-05-15 14:13:29 浏览: 15
改中文编码为utf8mb4,以支持存储和显示emoji表情。
在mysql配置文件(my.cnf或my.ini)中,找到[mysqld]部分,在其中添加以下几行:
```
character-set-server=utf8mb4
collation-server=utf8mb4_unicode_ci
```
保存文件并重启mysql服务,即可支持存储和显示emoji表情。
相关问题
请在mysql配置文件修sql-mode或sql_mode为NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION linux
根据引用\[1\]中提到的信息,如果你在Linux环境下安装tpshop时遇到提示"请在mysql配置文件修sql-mode为NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION",你需要修改my.cnf文件。请注意,Linux环境可能有多个这样的配置文件,如果你修改不成功,需要逐个修改。修改完成后,重启MySQL服务,并使用SQL工具执行"show variables like '%sql_mode%'"命令来查看修改是否成功。
#### 引用[.reference_title]
- *1* [tpshop提示 请在mysql配置文件修sql-mode为NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION](https://blog.csdn.net/wqhjfree/article/details/70305526)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
请在mysql配置文件修sql-mode或sql_mode为NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
根据引用\[1\]中的提示,要在mysql配置文件中修改sql_mode为NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION。如果你使用的是Windows系统,你需要修改my.ini文件;如果是Linux系统,可能是my.cnf文件。请注意,你的系统可能有多个这样的配置文件,如果修改不成功,需要逐个文件进行修改。修改完成后,重启mysql服务,并使用sql工具执行"show variables like '%sql_mode%'"命令来查看修改是否成功。
#### 引用[.reference_title]
- *1* [tpshop提示 请在mysql配置文件修sql-mode为NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION](https://blog.csdn.net/wqhjfree/article/details/70305526)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)