---
title: "mysql 导出"
author: "mailx8"
date: "2017-08-02T15:01:00Z"
tags: []
categories: ["数据库"]
slug: "mysql"
draft: false
lastmod: "2017-08-02T15:01:00Z"
id: 2388056
url: "https://mailx8.iteye.com/blog/2388056"
---

```
select * from news where ine_time>='2010-02-01'  and ine_time <'2010-03-01' into outfile '/tmp/newsdata.sql';

```

```
load data local infile '/home/lsanotes/newsdata.sql'  into table news　character set utf8;
```