远程连接mysql数据库,查询内容写到本地
mysql -h10.10.10.10 -uroot -proot -Ddbname -e "select * from dbname limit 100" > /tmp/tmp01.txt