# Fail to link postgresql-11 on docker

**URL:** <https://discuss.konghq.com/t/fail-to-link-postgresql-11-on-docker/5052>\
**Category:** Questions\
**Created:** [December 3, 2019, 1:03am UTC](https://discuss.konghq.com/t/fail-to-link-postgresql-11-on-docker/5052 "2019-12-03T01:03:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vsuns](https://avatars.discourse-cdn.com/v4/letter/v/ebca7d/32.png) [@vsuns](https://discuss.konghq.com/u/vsuns)\
**Post date:** [December 3, 2019, 1:03am UTC](https://discuss.konghq.com/t/fail-to-link-postgresql-11-on-docker/5052/1 "2019-12-03T01:03:04Z")

</div>

I am fresh for docker and kong .

I have 2 ECS instances just call them “A” and “B” ;  
I install docker and build kong 1.3 on “A” ;  
The “B” has a postgressql ;  
The I try to migrations kong on “A” linking to postgresql on “B”, like:

docker run --rm   
-e “KONG\_DATABASE=postgres”   
-e “KONG\_PG\_HOST=10.47.136.45”   
-e “KONG\_PG\_PORT=6506”   
-e “KONG\_PG\_DATABASE=devauth”   
-e “KONG\_PG\_USER=devauthdata”   
-e “KONG\_PG\_PASSWORD=Paic1234#”   
ay/kong:1.3 kong migrations bootstrap

it failed :  
Error: [PostgreSQL error] failed to retrieve server\_version\_num: FATAL: password authentication failed for user “devauthdata”

but the username and password are valid ！！！

---

<div class="post-metadata">

**Author:** ![vsuns](https://avatars.discourse-cdn.com/v4/letter/v/ebca7d/32.png) [@vsuns](https://discuss.konghq.com/u/vsuns)\
**Post date:** [December 3, 2019, 1:50am UTC](https://discuss.konghq.com/t/fail-to-link-postgresql-11-on-docker/5052/3 "2019-12-03T01:50:17Z")

</div>

I think I know that:  
it is Special characters !  
the password contains a “#” !  
I just try a new password without “#” , it success !!!  
so, is the way for kong to link postgresql-11 wrong???  
or need some improvement？

---

<div class="post-metadata">

**Author:** ![datong.sun](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/datong.sun/32/816_2.png) [@datong.sun](https://discuss.konghq.com/u/datong.sun)\
**Post date:** [December 4, 2019, 11:20pm UTC](https://discuss.konghq.com/t/fail-to-link-postgresql-11-on-docker/5052/4 "2019-12-04T23:20:46Z")

</div>

Hello,

This issue has been [fixed](https://github.com/Kong/kong/commit/a5171171ea86ace5cf93f53f79aa446d1a75ac71#diff-a2237d21dd96315727f1b771bf0111f5) in Kong 1.4.1. Please give it a try!

Thanks,  
Datong

---

<div class="post-metadata">

**Author:** ![vsuns](https://avatars.discourse-cdn.com/v4/letter/v/ebca7d/32.png) [@vsuns](https://discuss.konghq.com/u/vsuns)\
**Post date:** [December 5, 2019, 12:24am UTC](https://discuss.konghq.com/t/fail-to-link-postgresql-11-on-docker/5052/5 "2019-12-05T00:24:58Z")

</div>

thank u ！~！！  
i try it and it goes well
