# Connect Service for Remote SQL DB on Port other than defaul 3306

**URL:** <https://community.dreamfactory.com/t/connect-service-for-remote-sql-db-on-port-other-than-defaul-3306/1534>\
**Category:** Connecting to SQL\
**Created:** [September 28, 2015, 7:28pm UTC](https://community.dreamfactory.com/t/connect-service-for-remote-sql-db-on-port-other-than-defaul-3306/1534 "2015-09-28T19:28:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![willyvidable](https://avatars.discourse-cdn.com/v4/letter/w/f475e1/32.png) [@willyvidable](https://community.dreamfactory.com/u/willyvidable)\
**Post date:** [September 28, 2015, 7:28pm UTC](https://community.dreamfactory.com/t/connect-service-for-remote-sql-db-on-port-other-than-defaul-3306/1534/1 "2015-09-28T19:28:38Z")

</div>

Hi There,

I am trying to configure a service for connecting to a remote MySQL database that is located somewhere in the internet.  
I noticed that if I connect to a database server that is using the default port 3306 it works well. But if I configure for connecting to a server that is using a different port like 3310 it won’t work.

I have the following connection string:  
mysql:host=\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*.xxxxxxxxapp.net:3310;dbname=DFTest

I assume that the port 3306 is assumed by default so I specified 3310.

Any advice about this issue?

Thanks

---

<div class="post-metadata">

**Author:** ![formerstaff](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/formerstaff/32/1133_2.png) [@formerstaff](https://community.dreamfactory.com/u/formerstaff)\
**Post date:** [September 28, 2015, 7:47pm UTC](https://community.dreamfactory.com/t/connect-service-for-remote-sql-db-on-port-other-than-defaul-3306/1534/2 "2015-09-28T19:47:50Z")

</div>

Hey Willy.  
The correct connection string for using a different port other than the default is  
mysql:host=hostname;port=portnumber;dbname=databasename

---

<div class="post-metadata">

**Author:** ![willyvidable](https://avatars.discourse-cdn.com/v4/letter/w/f475e1/32.png) [@willyvidable](https://community.dreamfactory.com/u/willyvidable)\
**Post date:** [September 28, 2015, 8:25pm UTC](https://community.dreamfactory.com/t/connect-service-for-remote-sql-db-on-port-other-than-defaul-3306/1534/3 "2015-09-28T20:25:48Z")

</div>

Thanks a lot Drew.

I changed the connection string as you suggested and I have now a ClearDB database linked to DreamFactory.

Thanks a lot for your prompt answer.
