3 ms·
How come it was enough to set a different database URL in the development server and BAM you're connected to the production database? Do they share the same pa
by konschubert 9y ago
How come it was enough to set a different database URL in the development server and BAM you're connected to the production database?
Do they share the same password? Or is the password in the URL?
- aprdm 9y agoThe database URL usually has the username and password as well. For example: postgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]
- astura 9y ago[deleted]
- detaro 9y agoNo, its a URL. Connection strings have a different format, as clearly shown in the example in your link.
- anonacct37 9y agoFor anything using libpq a .pgpase file can help separate creds in source/conf from now machine level ACLS.
- anonacct37 9y ago*.pgpass