码迷,mamicode.com
首页 > 数据库 > 详细

解决数据库1366 中文编码问题

时间:2014-11-03 01:13:59      阅读:236      评论:0      收藏:0      [点我收藏+]

标签:io   ar   sp   数据   on   问题   bs   amp   ad   

转换数据库的编码格式:

alter database databasename character set utf8;

 

 

  1. #检查数据表所有字段的状态
  2. ->show full columns from phplamp;
  3. #发现address字段的Collation项非utf8,修改它!
  4. ->alter table phplamp change name name varchar(100) character set utf8 collate utf8_unicode_ci not null default ‘‘;

 

解决数据库1366 中文编码问题

标签:io   ar   sp   数据   on   问题   bs   amp   ad   

原文地址:http://www.cnblogs.com/shellnalu/p/4070280.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!