zoukankan      html  css  js  c++  java
  • 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)

  • 相关阅读:
    虚拟机中按键切回windows系统界面快捷键
    余数
    质数(素数)判断代码实现
    =excel========》函数使用
    python 正则表达式规则
    linux常用命令详解
    c指针
    visual studio 2015 开发时常见问题的解决方案
    python装饰器
    构造方法
  • 原文地址:https://www.cnblogs.com/predisw/p/4991655.html
Copyright © 2011-2022 走看看