# Connect to existing MYSQL DB

**URL:** <https://discuss.circleci.com/t/connect-to-existing-mysql-db/26871>\
**Category:** Databases\
**Created:** [November 30, 2018, 5:59pm UTC](https://discuss.circleci.com/t/connect-to-existing-mysql-db/26871 "2018-11-30T17:59:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![circlenoob](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@circlenoob](https://discuss.circleci.com/u/circlenoob)\
**Post date:** [November 30, 2018, 5:59pm UTC](https://discuss.circleci.com/t/connect-to-existing-mysql-db/26871/1 "2018-11-30T17:59:36Z")

</div>

I have some python code which connects to our db. I was unable to connect to the db and realized it was due to VPN issues. So I need to connect to the vpn first.

---

<div class="post-metadata">

**Author:** ![halfer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/halfer/32/9083_2.png) [@halfer](https://discuss.circleci.com/u/halfer)\
**Post date:** [November 30, 2018, 8:11pm UTC](https://discuss.circleci.com/t/connect-to-existing-mysql-db/26871/2 "2018-11-30T20:11:44Z")

</div>

It is ideal that, if you post a question and find the answer yourself, you add an answer that might help other people.

---

<div class="post-metadata">

**Author:** ![circlenoob](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@circlenoob](https://discuss.circleci.com/u/circlenoob)\
**Post date:** [December 3, 2018, 3:07pm UTC](https://discuss.circleci.com/t/connect-to-existing-mysql-db/26871/3 "2018-12-03T15:07:56Z")

</div>

I see. Will update with some details.

---

<div class="post-metadata">

**Author:** ![circlenoob](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@circlenoob](https://discuss.circleci.com/u/circlenoob)\
**Post date:** [December 3, 2018, 4:40pm UTC](https://discuss.circleci.com/t/connect-to-existing-mysql-db/26871/4 "2018-12-03T16:40:04Z")

</div>

So after doing some more digging it doesn’t seem like circleci supports connecting to a vpn. (We use openvpn) I’ve found this post on stackoverflow describing some work arounds but none of them seems ideal. Any ideas?

> <https://stackoverflow.com/questions/46245838/how-do-i-connect-to-vpn-from-a-build-running-on-circleci>

---

<div class="post-metadata">

**Author:** ![halfer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/halfer/32/9083_2.png) [@halfer](https://discuss.circleci.com/u/halfer)\
**Post date:** [December 3, 2018, 8:14pm UTC](https://discuss.circleci.com/t/connect-to-existing-mysql-db/26871/5 "2018-12-03T20:14:46Z")

</div>

> [@circlenoob](#):
>
> it doesn’t seem like circleci supports connecting to a vpn

I think that might not be possible in Docker, but it should be OK from a Machine executor. Which one are you trying?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [March 3, 2019, 8:14pm UTC](https://discuss.circleci.com/t/connect-to-existing-mysql-db/26871/6 "2019-03-03T20:14:50Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
