Home > Database > Mysql Tutorial > MySQL 5.5字符集问题

MySQL 5.5字符集问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:15:57
Original
1249 people have browsed it

安装了个5.5版本的mysql,字符集出现了问题,之前的mysql服务器都是通过在my.cnf配置文件中进行配置便可,可是今儿怎么着都不行一

安装了个5.5版本的mysql,字符集出现了问题,之前的mysql服务器都是通过在my.cnf配置文件中进行配置便可,可是今儿怎么着都不行一直报错:

当时系统中也没有配置错误日志,所以只能是先配置下错误日志的位置,看看到底是哪里出错了:

结果查看了错误日志才发现是字符集的错误:

  • 居然不认识,上网上了找了下发现也有人遇到了,,说是5.5中mysql不再使用default-character-set这种写法了。

    具体请看:

    把default-character-set=utf8 改成: character-set-server=utf8就可以了。 OK收工了。

    linux

  • Related labels:
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template