#Connecting to Existing PostgreSQL DB with Payload
11 messages · Page 1 of 1 (latest)
Original message from @lyric obsidian - Moved from #general message
Help is on the way! To mark it as solved, use the /solve command. In the meantime, here are some existing threads that may help you:
Documentation:
Hey @lyric obsidian , welcome! Questions like this usually go into #1031993785971900556
I can help you out
Thank you so much @knotty cipher
Are you using 2.0 or trying out the new 3.0 beta?
3.0
Got it, did you happen to try using create-payload-app@beta?
(It currently has issues swapping in the pg adapter, fix coming soon). I can give you some steps, though
The general steps will be to ensure you have @payloadcms/db-postgres beta version installed via pnpm add @payloadcms/db-postgres@beta, then swap in the adapter in your payload config
db: postgresAdapter({
pool: {
connectionString: process.env.DATABASE_URI,
},
}),
NOTE: Ensure this env var matches up to what you are setting it as in your .env