[英]panic: pq: password authentication failed for user “postgres” while adding the data into table through timescaledb-parallel-copy in hypertable
I am using PostgreSQL with Linux 16.04 version. 我在Linux 16.04版本上使用PostgreSQL。 I installed timescaledb in that.
我在其中安装了timescaledb。
After words i am trying to insert huge data into the hypertable called new_observation
through observation.csv
it near by approx 5 GB data, while I copy by simply copy command I will get more error afterwords I see the another way to copy huge data from go-parallel copy so I just installed go and tried something like this: 词之后,我试图通过
observation.csv
将大数据插入到名为new_observation
的超new_observation
,接近5 GB数据,而我仅通过复制命令进行复制,我将得到更多的错误后记,我看到了另一种从行复制数据的方法-parallel复制,所以我刚安装了go并尝试了以下操作:
go get github.com/timescale/timescaledb-parallel-copy
gopal@addontrack:~$ timescaledb-parallel-copy --db-name testat --
schema web --table new_observation --file /tmp/observation.csv \ --
workers 2 --reporting-period 30s
panic: pq: password authentication failed for user "postgres"
紧急:pq:用户“ postgres”的密码身份验证失败
goroutine 19 [running]: github.com/jmoiron/sqlx.MustConnect(0x641807, 0x8, 0xc42001e080, 0x3a, 0x0) /home/gopal/.go/src/github.com/jmoiron/sqlx/sqlx.go:652 +0x83 main.processBatches(0xc420080250, 0xc42008a060) /home/gopal/.go/src/github.com/timescale/timescaledb-parallel-copy/main.go:180 +0x63 created by main.main /home/gopal/.go/src/github.com/timescale/timescaledb-parallel-copy/main.go:105 +0x178
goroutine 19 [运行中]:github.com/jmoiron/sqlx.MustConnect(0x641807、0x8、0xc42001e080、0x3a、0x0)/home/gopal/.go/src/github.com/jmoiron/sqlx/sqlx.go:652 + 0x83 main.processBatches(0xc420080250,0xc42008a060)/home/gopal/.go/src/github.com/timescale/timescaledb-parallel-copy/main.go:180 + 0x63由main.main /home/gopal/.go创建/src/github.com/timescale/timescaledb-parallel-copy/main.go:105 + 0x178
when I try to copy data by this way i got this error. 当我尝试通过这种方式复制数据时,出现此错误。
The postgres user by default has no password. 默认情况下,postgres用户没有密码。 But your server seems to expect password authentication.
但是您的服务器似乎需要密码验证。
The timescaledb-parallel-copy script assumes the default configuration for its connection defaults - but they can be overridden with the connection flag. timescaledb-parallel-copy脚本假定其连接默认值为默认配置-但可以用连接标志覆盖它们。
Default value: 默认值:
"host=localhost user=postgres sslmode=disable"
New command (untested): 新命令(未试用):
gopal@addontrack:~$ timescaledb-parallel-copy \
--connection host=localhost user=postgres password=super-secret sslmode=disable \
--db-name testat --schema web --table new_observation \
--file /tmp/observation.csv --workers 2 --reporting-period 30s
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.