日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

xshell下载mysql到本地文件_在Xshell中上传下载文件到本地(linux中从多次ssh登录的dbserver里面的文件夹)-Go语言中文社区...

發(fā)布時間:2025/3/15 数据库 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 xshell下载mysql到本地文件_在Xshell中上传下载文件到本地(linux中从多次ssh登录的dbserver里面的文件夹)-Go语言中文社区... 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

在Xshell中上傳下載文件到本地(linux中從多次ssh登錄的dbserver里面的文件夾)

1 列出所有需要copy的sh文件

-bash-4.1$ ll /mysqllog/osw/*.sh

-rwxr-xr-x 1 mysql mysql ? 409 May 16 10:00 /mysqllog/osw/topaix.sh

-rwxr-xr-x 1 mysql mysql ? 127 May 16 10:00 /mysqllog/osw/tarupfiles.sh

-rwxr-xr-x 1 mysql mysql ? 556 May 16 10:00 /mysqllog/osw/stopOSW.sh

-rwxr-xr-x 1 mysql mysql ?1609 May 16 10:00 /mysqllog/osw/startOSW.sh

-rwxr-xr-x 1 mysql mysql ? 398 May 16 10:00 /mysqllog/osw/oswsub.sh

-rwxr-xr-x 1 mysql mysql ? 330 May 16 10:00 /mysqllog/osw/oswnet.sh

-rwxr-xr-x 1 mysql mysql ? 636 May 16 10:00 /mysqllog/osw/oswlnxtop.sh

-rwxr-xr-x 1 mysql mysql ? 634 May 16 10:00 /mysqllog/osw/oswlnxio.sh

-rwxr-xr-x 1 mysql mysql 15598 May 16 10:00 /mysqllog/osw/OSWatcher.sh

-rwxr-xr-x 1 mysql mysql ?5586 May 16 10:00 /mysqllog/osw/OSWatcherFM.sh

-rwxr--r-- 1 mysql mysql ? 567 May 16 10:00 /mysqllog/osw/mysql_status.sh

-rwxr--r-- 1 mysql mysql ? 617 May 16 10:00 /mysqllog/osw/mysql.sh

-rwxr--r-- 1 mysql mysql ? 587 May 16 10:00 /mysqllog/osw/mysql_inno_status.sh

2 從遠程db服務器上copy出來sh到控制機器的novamysqladminprod帳號目錄下:

2.1 進入osw目錄并且copysh文件

cd /home/novamysqladminprod/cacti/osw

scp xxxx027db01.eao.abn-iad.ea.com:/mysqllog/osw/*.sh ./

cp * /tmp/osw/

2.2 退出control機器

[novamysqladminprod@mydbctl osw]$ exit

logout

[chm@mydbctl osw]$ exit

logout

[chm@linuxbh1-p osw]$ scp mydbctl.eao.abn-iad.ea.com:/tmp/osw/* /tmp/osw

Password:

mysql_inno_status.sh ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 100% ?587 ? ? 0.6KB/s ? 00:00

mysql.sh ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 100% ?617 ? ? 0.6KB/s ? 00:00

mysql_status.sh ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?100% ?567 ? ? 0.6KB/s ? 00:00

OSWatcherFM.sh ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 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:00

startOSW.sh ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?100% 1609 ? ? 1.6KB/s ? 00:00

stopOSW.sh ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 100% ?556 ? ? 0.5KB/s ? 00:00

tarupfiles.sh ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?100% ?127 ? ? 0.1KB/s ? 00:00

topaix.sh ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?100% ?409 ? ? 0.4KB/s ? 00:00

2.3 check sh files in linuxbh servers

[chm@linuxbh1-p osw]$ pwd

/tmp/osw

[chm@linuxbh1-p osw]$ ll

total 68

-rwxr--r-- 1 chm chm ? 587 Sep ?2 08:06 mysql_inno_status.sh

-rwxr--r-- 1 chm chm ? 617 Sep ?2 08:06 mysql.sh

-rwxr--r-- 1 chm chm ? 567 Sep ?2 08:06 mysql_status.sh

-rwxr-xr-x 1 chm chm ?5586 Sep ?2 08:06 OSWatcherFM.sh

-rwxr-xr-x 1 chm chm 15598 Sep ?2 08:06 OSWatcher.sh

-rwxr-xr-x 1 chm chm ? 634 Sep ?2 08:06 oswlnxio.sh

-rwxr-xr-x 1 chm chm ? 636 Sep ?2 08:06 oswlnxtop.sh

-rwxr-xr-x 1 chm chm ? 330 Sep ?2 08:06 oswnet.sh

-rwxr-xr-x 1 chm chm ? 398 Sep ?2 08:06 oswsub.sh

-rwxr-xr-x 1 chm chm ?1609 Sep ?2 08:06 startOSW.sh

-rwxr-xr-x 1 chm chm ? 556 Sep ?2 08:06 stopOSW.sh

-rwxr-xr-x 1 chm chm ? 127 Sep ?2 08:06 tarupfiles.sh

-rwxr-xr-x 1 chm chm ? 409 Sep ?2 08:06 topaix.sh

[chm@linuxbh1-p osw]$

it is ok ,all the sh files are here.

3 copy the sh files to local pc D:osw

google得到如下幫助信息:

XShell上傳與下載文件命令sz,rz

sz ?test.log ?下載文件名為test.log到本地

rz ?上傳文件到遠程服務器

rz ?-y 覆蓋已存在文件

我這里需要用的是sz命令,如下圖所示:

再去本地check sh文件,已經(jīng)下載下來了。

總結(jié)

以上是生活随笔為你收集整理的xshell下载mysql到本地文件_在Xshell中上传下载文件到本地(linux中从多次ssh登录的dbserver里面的文件夹)-Go语言中文社区...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。