---
title: "[mysql]导出查询结果"
author: "MyEyeOfJava"
date: "2011-12-05T14:02:36Z"
tags: []
categories: ["数据库"]
slug: "mysql"
draft: false
lastmod: "2011-12-05T14:02:36Z"
id: 1292093
url: "https://myeyeofjava.iteye.com/blog/1292093"
---

./mysql -upim_w -ppim_dianxin2011 -h 10.18.102.103 --port 8066 -e 'select id,userId from pimaccountdevice group by userId;' > ~/users.txt