Using the connection string of the Postgresql URL in the format:
postgresql://user:secret@localhost
How to handle special characters in this string (e.g. $ ) so that it really works when connected to my postgres database?
I tried just encoding the url, so for example, "test $" becomes "test% 24" ... but this seems to be a problem since I get the error "FATAL: password authentication failed" when trying to use it.
. URI .
, :
URI postgres 9.2, 9.1, . , URI .
9.2
9.1
. :
- URI.
9.3:
sql> alter user daniel password 'p$ass';
$ psql 'postgresql://daniel:p$ass@localhost/test'
$ psql 'postgresql://daniel:p%24ass@localhost'
psql 'postgresql://daniel:pass@localhost/test'
: .
Source: https://habr.com/ru/post/1538501/More articles:How to stop a program if there is a warning - pythonHow to get error R14 (memory quota exceeded) by 524 MB when working on 2x dynamo with 1 GB? - herokuGrails Maven Resolver does not work with 2.3.8 - mavenForeignRelatedObjectsDescriptor 'object does not have' all 'attribute - pythonInitializing IDictionary > - c #Media request for iPhone 4 and 4s - cssAdding a Button to CMS in SilverStripe - buttonCustomizing Facets in Elasticsearch with Searchkick Stone in Rails 4.1 - ruby ββ| fooobar.comScala type restrictions are not displayed correctly in the matching statement - scalaJava is not equal (! =) The difference in performance is javaAll Articles