---
title: "解决Kettle抽取数据到MySql后出现中文乱码问题"
author: "libin0019"
date: "2016-05-17T09:51:36Z"
tags: []
categories: ["开源软件"]
slug: "kettle-mysql"
draft: false
lastmod: "2016-05-17T09:54:08Z"
id: 2298662
url: "https://libin0019.iteye.com/blog/2298662"
---

问题原因：未设置数据库连接字符集

解决方法：

第一步：打开数据库连接，点击“编辑”按钮，选中“Advanced”选项卡，输入“set names utf8;”

![](http://dl2.iteye.com/upload/attachment/0117/4600/fd2c68de-c4c1-3c75-ab0a-9c38504fd56c.png)

 

 

第二步：进到“Options”选项卡，设置字符集

![](http://dl2.iteye.com/upload/attachment/0117/4602/9821debc-a138-3b20-9feb-904e350c3a27.png)