求助MYSQL中打不了中文了
Tofloor
poster avatar
151******67
deepin
2018-06-05 22:54
Author
一开始因为Mysql不识别中文,去网上找了下,配置里添加了下面几句


[mysqld]
character_set_server=utf8

[mysql]
default-character-set=utf8

[client]
default-character-set=utf8

然后终端里MYSQL中连中文不显示了

Reply Favorite View the author
All Replies
avatar
151******67
deepin
2018-06-05 22:57
#1
为什么我发的贴在首页上看不到啊
Reply View the author
avatar
要讲武德
deepin
2018-06-06 00:47
#2
https://bbs.deepin.org/post/157669
为什么我发的贴在首页上看不到啊

有延迟,.过一会再刷新就在上面了.
Reply View the author
avatar
s***7@gmail.com
deepin
2018-06-06 01:51
#3
登录mysql后,执行show variables like '%char%';看看是不是除了filesystem和dir都是utf8,我改成功了是这样的。。。

如果没成功可以试试把已经建立的库删掉,然后sudo systemctl restart mysql.service。。。
Reply View the author
avatar
151******67
deepin
2018-06-06 16:56
#4
https://bbs.deepin.org/post/157669
登录mysql后,执行show variables like '%char%';看看是不是除了filesystem和dir都是utf8,我改成功了是这 ...

还是不行啊,是我的UTF8有问题?
Reply View the author
avatar
151******67
deepin
2018-06-06 17:02
#5
目前就是这样
Reply View the author
avatar
s***7@gmail.com
deepin
2018-06-06 18:34
#6

呃。。还以为你说的乱码的问题。。我这没改都可以输中文,感觉你是输入法的问题,自从卸了搜狗,麻烦少多了

Reply View the author
avatar
151******67
deepin
2018-06-06 18:41
#7
https://bbs.deepin.org/post/157669
呃。。还以为你说的乱码的问题。。我这没改都可以输中文,感觉你是输入法的问题,自从卸了搜狗,麻烦少多 ...

好尴尬,我两笔
Reply View the author
avatar
151******67
deepin
2018-06-06 18:44
#8
https://bbs.deepin.org/post/157669
呃。。还以为你说的乱码的问题。。我这没改都可以输中文,感觉你是输入法的问题,自从卸了搜狗,麻烦少多 ...

我没改之前也能打出中文,但是数据库里会被识别为‘^?’, 我改了之后 打不出中文了
Reply View the author
avatar
s***7@gmail.com
deepin
2018-06-06 18:49
#9
https://bbs.deepin.org/post/157669
我没改之前也能打出中文,但是数据库里会被识别为‘^?’, 我改了之后 打不出中文了 ...

要不试试DBeaver这种图形化的工具。。。
Reply View the author
avatar
ysy
deepin
2018-06-06 19:09
#10
只留第一个  ,后面的那两个删了去  没有什么作用,,,你的这样弄的话 在终端中进入MySQL输不了中文的  
Reply View the author