远程连接mysql数据库,查询内容写到本地

远程连接mysql数据库,查询内容写到本地

mysql -h10.10.10.10 -uroot -proot -Ddbname -e "select * from dbname limit 100" > /tmp/tmp01.txt

posted @ 2020-01-26 13:09  后山前堂客  阅读(538)  评论(0)    收藏  举报