# Vbulletin 批量导入器无法找到 PG 数据库

**URL:** https://meta.discourse.org/t/vbulletin-bulk-importer-cant-find-pg-database/78112
**Category:** Development
**Created:** [2018年一月16日 00:56 UTC](https://meta.discourse.org/t/vbulletin-bulk-importer-cant-find-pg-database/78112 "2018-01-16T00:56:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2018年一月16日 00:56 UTC](https://meta.discourse.org/t/vbulletin-bulk-importer-cant-find-pg-database/78112/1 "2018-01-16T00:56:27Z")

</div>

Continuing the discussion from [Importers for large forums](https://meta.discourse.org/t/importers-for-large-forums/61681):

I’m sure I’m doing something silly, but I’m trying to run the vbulletin bulk importer and for some reason it can’t find the postgres database.

```
/home/pfaffman/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/pg-0.20.0/lib/pg.rb:56:in `initialize': fe_sendauth: no password supplied (PG::ConnectionBad)

```

It looks like it should get it here:

> <https://github.com/discourse/discourse/blob/main/script/bulk_import/base.rb#L15-L19>

I ran a standard importer and it didn’t have any trouble.

What am I missing?

Edit: I’m not the only one: [https://meta.discourse.org/t/fe-sendauth-no-password-supplied-in-bulk-importer/76276?u=pfaffman](https://meta.discourse.org/t/fe-sendauth-no-password-supplied-in-bulk-importer/76276)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018年四月17日 23:26 UTC](https://meta.discourse.org/t/vbulletin-bulk-importer-cant-find-pg-database/78112/2 "2018-04-17T23:26:28Z")

</div>

Did you ever figure this out?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2018年四月18日 02:32 UTC](https://meta.discourse.org/t/vbulletin-bulk-importer-cant-find-pg-database/78112/3 "2018-04-18T02:32:12Z")

</div>

No. But I’ve not tried again.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2018年四月29日 17:26 UTC](https://meta.discourse.org/t/vbulletin-bulk-importer-cant-find-pg-database/78112/4 "2018-04-29T17:26:54Z")

</div>

Changing

> <https://github.com/discourse/discourse/blob/main/script/bulk_import/base.rb#L60>

to

```plaintext
@raw_connection = PG.connect(dbname: db[:database], host: db[:host_names]&.first, port: db[:port], password: "discourse")

```

(where `discourse` is the password for `discourse_development` database)

should fix this issue. I think this issue is specific to Linux and works fine on macOS.
