mysql的blob字段存储中文,输出乱码

1.mysql数据库连接字符编码 url ="jdbc:mysql://localhost:3306/test3?useUnicode=true&characterEncoding=UTF-8"; 2.查看创表的字符集 show  create table  tablename; 3....
1.mysql数据库连接字符编码
url ="jdbc:mysql://localhost:3306/test3?useUnicode=true&characterEncoding=UTF-8";

2.查看创表的字符集
show  create table  tablename;
3.查看数据库的编码
show variables like '%char%';


修改字符编码:

set character_set_server=utf8;
set character_set_database=utf8;
show variables like '%char%';


原文出处:http://st4024589553.iteye.com/blog/2430215

  • 发表于 2018-09-17 23:43
  • 阅读 ( 1012 )
  • 分类:网络文章

条评论

请先 登录 后评论
不写代码的码农
小编

篇文章

作家榜 »

  1. 小编 文章
返回顶部
部分文章转自于网络,若有侵权请联系我们删除