您好,登錄后才能下訂單哦!
這篇文章主要介紹rhel7中pgloader怎么用,文中介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們一定要看完!
官網(wǎng)下載 pgloader-3.4.1-2.rhel7.x86_64.rpm,python-psycopg2 安裝
這是shell 運行pgloader 出現(xiàn) libssl.so被需要 ll | grep libssl.so.1.0. 查找 這個時候可能會出現(xiàn)兩條查找結(jié)果,
我的是libssl.so.1.0.1e 新建軟鏈接 ln -s /lib64/ libssl.so.1.0.1e /lib64/ libssl.so
這個時候在執(zhí)行pgloader shell會直接結(jié)束命令,說明安裝完成 pgloader --help可查看幫助信息
使用時例如
pgloader --type csv --field "id,name" -D /home/hgs -L /home/hgs/test.log --with "fields terminated by \'\\t\'" --with "batch rows = 100000" /home/hgs/test.bcp postgresql://postgres:postgres@192.168.245.137:5432/postgres?tablename=test
以上是“rhel7中pgloader怎么用”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對大家有幫助,更多相關(guān)知識,歡迎關(guān)注億速云行業(yè)資訊頻道!
免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。