Home  >  Article  >  Database  >  MySQL安装以及中文乱码问题_MySQL

MySQL安装以及中文乱码问题_MySQL

WBOY
WBOYOriginal
2016-05-31 08:48:08937browse

1 安装

最后配置文件处问题,前面有个叉号,不能写成功。是因为安装路径不能有中文!!!!


2安装时的编码设置我utf8

3不能插入中文

表和表中属性的的字符集也要改成utf8


4不能显示中文(naivecat管理工具

设置编码为utf8

mysql> set names utf8;
Query OK, 0 rows affected


mysql> Show variables like '%character%';
+--------------------------+-------------------------------+
| Variable_name            | Value                         |
+--------------------------+-------------------------------+
| character_set_client     | utf8                          |
| character_set_connection | utf8                          |
| character_set_database   | utf8                          |
| character_set_filesystem | binary                        |
| character_set_results    | utf8                          |
| character_set_server     | utf8                          |
| character_set_system     | utf8                          |
| character_sets_dir       | E:/MySoftware/share/charsets/ |
+--------------------------+-------------------------------+
8 rows in set


mysql> 

Statement:
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