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%';
mysql的blob字段存储中文,输出乱码
1.mysql数据库连接字符编码
url ="jdbc:mysql://localhost:3306/test3?useUnicode=true&characterEncoding=UTF-8";
2.查看创表的字符集
show create table tablename;
3....
- 发表于 2018-09-17 23:43
- 阅读 ( 1012 )
- 分类:网络文章
你可能感兴趣的文章
- 【赵强老师】什么是Oracle的数据字典? 180 浏览
- CentOS 8 安装 MariaDB 124 浏览
- MySQL 面试题 24 问 107 浏览
- 【赵强老师】MySQL高可用架构:MHA 163 浏览
- MySQL:java实体类生成数据库 142 浏览
- 1、MySQL常见的操作命令 139 浏览
随机文章
- Java function call with changing parameter amount 157 浏览
- Maven Jsoup Missing Artifact Exception 319 浏览
- How to memoize recursive path of length n search 152 浏览
- Why does Kotlin use == for structural equality and introduce === for referential equality 253 浏览
- Java8: collecting a stream into a SortedMap by key 212 浏览
相关问题
条评论
请先 登录 后评论
发送私信
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!