mysql5.6中文输入_mysql5.6不能输入中文

问题:可以显示中文,但是在mysql-client 客户端输入不了中文。

1.字符为utf-8

Server characterset: utf8

Db characterset: utf8

Client characterset: utf8

Conn. characterset: utf8

有两个版本的mysql,一个为5.5版本,一个为5.6 版本。5.5 的可以,5.6 的不行。比较了一下status 命令的输出,发现版本处参数有点不一样。

5.6  Ver 14.14 Distrib 5.6.27, for debian-linux-gnu (x86_64) using  EditLine wrapper

5.5 是using readLine 6.0

http://dev.mysql.com/doc/refman/5.6/en/source-configuration-options.html#option_cmake_with_editline

-DWITH_READLINE=bool

Whether to use the readline library bundled with the distribution. This option was removed in MySQL 5.6.5 because readline is no longer bundled.

解决方案:

事实上,讲原来的mysql-server mysql-client 卸载更换为 mysql-community-server mysql-community-client 之后就ok 了

更换后的版本为:

mysql  Ver 14.14 Distrib 5.6.27, for Linux (x86_64) using  EditLine wrapper

Server version: 5.6.27-log MySQL Community Server (GPL)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值