Home > Database > Mysql Tutorial > body text

Linux系统下修改MySQL字符编码问题

WBOY
Release: 2016-06-07 16:51:50
Original
1080 people have browsed it

1.在Linux系统中找到MySQL的安装文件夹,找到里面的my.ini文件2.打开my.ini,里面有两处default-character-set 将[mysqld]上面的修

Linux系统下修改MySQL字符编码问题

[日期:2008-04-28] 来源:Linux公社  作者:Linux整理 [字体:]

1.在Linux系统中找到MySQL的安装文件夹,找到里面的my.ini文件

2.打开my.ini,里面有两处default-character-set

将[mysqld]上面的修改为gbk,下面的修改为utf8

3.重启服务即可。

linux

  • 0
  • Linux系统下手动安装pdo_mysql 成功

    Red Hat Linux 9上安装MYSQL“mysqld已死,,但是subsys被锁”的解决方案

    source:php.cn
    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
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!