tanya ttg postgre di linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



mw tanya: (sy pake fedora 7, dtbase postgreSQL)
1.    kalo mw copy isi tabel dlm dtbase ke flat file hrs masuk ke dtbasenya sbg user postgres kan?
2.    Command yg dpake apa?
3.    Sy ud nyoba:
       ●    masuk k postgre dg user postgres
       ●    command: simps=# COPY log TO '/root/documents/log.sql';
                ○    simps=nama dt base
                ○    log=nama tabel
                ○    log.sql=nama file tujuan
       tp muncul error:
       could not open file "/root/documents/log.sql" for writing: Permission denied
       sy ud ubah mode documents dg chmod -Rf 777 documents, sy jg ud ubah mode file log.sql agr root bs r,w,x. Tp errormsg nya te2p sama.
       namun, kalo pke cmd:   simps=# COPY log TO STDOUT;  isi tabel log bs lgsung muncul ke layar shell.
       kalo STDOUT dganti dg root file ko ga bisa??? padahal di man copy bgtu ptnjuknya
4.    cr yg bener gmn ya???
5.    sgt diharapkan bantuannya. Terimakasih banyak


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux