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

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

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

猜你喜欢

转载自www.cnblogs.com/wooluwalker/p/12234103.html