# Problem adding new connection for datasource

**URL:** <https://forum.inductiveautomation.com/t/problem-adding-new-connection-for-datasource/708>\
**Category:** Archived Topics\
**Created:** [June 25, 2008, 3:25pm UTC](https://forum.inductiveautomation.com/t/problem-adding-new-connection-for-datasource/708 "2008-06-25T15:25:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![richxie](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@richxie](https://forum.inductiveautomation.com/u/richxie)\
**Post date:** [June 25, 2008, 3:25pm UTC](https://forum.inductiveautomation.com/t/problem-adding-new-connection-for-datasource/708/1 "2008-06-25T15:25:03Z")

</div>

Hi,  
I am not SQL guy, but I am trying to add new conection in datasource. But always fail. I have a couple of screen shots attached. Please help out.

Thanks,  
Richard

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/91121c11af744f238c5b17b96d5f5c4af3612cd0.JPG)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/208ffc11df93d64326879edbdf4966d9e86f82e3.JPG)

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [June 25, 2008, 4:03pm UTC](https://forum.inductiveautomation.com/t/problem-adding-new-connection-for-datasource/708/2 "2008-06-25T16:03:58Z")

</div>

Well, you’re getting a Connection Refused error trying to connect to that mysql datasource at localhost:6666. Maybe its not there or not listening on that port?

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [June 25, 2008, 5:14pm UTC](https://forum.inductiveautomation.com/t/problem-adding-new-connection-for-datasource/708/3 "2008-06-25T17:14:14Z")

</div>

I would also add that it looks like your IADemo data connection is working… and that’s going against MySQL on port 3306. I think it’s very unlikely that you’d have a separate mysql instance running on a different port… why don’t you try changing the connection string to:

```auto
jdbc:mysql://localhost:3306/Energy
```

and see if that works.

Regards,
