# Problem with MYSQL connection in container?

**URL:** <https://forums.suse.com/t/problem-with-mysql-connection-in-container/14017>\
**Category:** RancherOS\
**Created:** [April 19, 2019, 3:11pm UTC](https://forums.suse.com/t/problem-with-mysql-connection-in-container/14017 "2019-04-19T15:11:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChristophB](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@ChristophB](https://forums.suse.com/u/ChristophB)\
**Post date:** [April 19, 2019, 3:11pm UTC](https://forums.suse.com/t/problem-with-mysql-connection-in-container/14017/1 "2019-04-19T15:11:16Z")

</div>

Hi there, I need some help:

This simple docker config is running fine on my local machine (no rancher): [https://gist.github.com/solars/e54685a719ec06973898e0bf00d0f52e](https://gist.github.com/solars/e54685a719ec06973898e0bf00d0f52e)  
but I keep getting the can’t connect to MYSQL error within rancher

Does anyone know why?

Thank you very much,  
Christoph

---

<div class="post-metadata">

**Author:** ![ChristophB](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@ChristophB](https://forums.suse.com/u/ChristophB)\
**Post date:** [April 26, 2019, 7:51pm UTC](https://forums.suse.com/t/problem-with-mysql-connection-in-container/14017/2 "2019-04-26T19:51:08Z")

</div>

can anyone help me maybe?
