Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Section15: MySQL编码问题 #21

Open
bestmem opened this issue Mar 15, 2023 · 0 comments
Open

Section15: MySQL编码问题 #21

bestmem opened this issue Mar 15, 2023 · 0 comments

Comments

@bestmem
Copy link

bestmem commented Mar 15, 2023

问题描述

mysql8中默认字符集为utf8mb4,不再是latin1,因此不存在不能插入中文或插入中文乱码情况。

  1. 在mysql 8中插入没有报错。
    docker run --name mysql-demo -e MYSQL_ROOT_PASSWORD=root -p 3307:3306 -d -v $(pwd):/test mysql:8
    image

问题发生在第几章第几节

  1. 尝试中文?
    image

有解决办法么?

No response

测试用的Mysql版本

MySQL 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant