mysql
mysql -h${HOSTNAME} -P${PORT} -u${USERNAME} -p${PASSWORD} -e "sql语句" -hlocalhost -uroot -proot customer -e "select * from customer" > 1.txt
参考文章:
http://www.2cto.com/database/201410/343557.html
http://blog.163.com/njut_wangjian/blog/static/1657964252013112152418345/
本文出自 “一无所有-天行者” 博客,请务必保留此出处http://tianxingzhe.blog.51cto.com/3390077/1680086
原文地址:http://tianxingzhe.blog.51cto.com/3390077/1680086