How to connect a mysql/oracle database to servicenow

dev115415
Tera Expert

Hello I want to connect my servicenow app to an oracle/mysql database. How to do it?

I tried creating a data source in Inbound Integrations in ServiceNow studio. 

Also for the purpose of a trial I was doing with a mysql database. There I am getting an error- 

Could not connect to address=(host=localhost)(port=3306)(type=master) : Connection refused (Connection refused)

dev115415_0-1683531147084.png

 

1 ACCEPTED SOLUTION

newhand
Mega Sage

HI@dev115415 

ServiceNow runs on the public internet, so it cannot connect to "localhost" directly. To connect to your database on your local network, you should fill in the "Use Mid Server" option (on the left side of your picture).

Before doing this, you need to create a mid server and ensure that the mid server can successfully access your database.

And, don't forget to change  the "localhost" to IP address...

 

 

 

 

Please mark my answer as correct and helpful based on Impact.

View solution in original post

3 REPLIES 3

newhand
Mega Sage

HI@dev115415 

ServiceNow runs on the public internet, so it cannot connect to "localhost" directly. To connect to your database on your local network, you should fill in the "Use Mid Server" option (on the left side of your picture).

Before doing this, you need to create a mid server and ensure that the mid server can successfully access your database.

And, don't forget to change  the "localhost" to IP address...

 

 

 

 

Please mark my answer as correct and helpful based on Impact.

Thanks for your response. Please help me to how to fill the Mid server. I see many options there

@dev115415 
You should check the mid server definition to find out which mid server can reach your database, and select that one.


Please mark my answer as correct and helpful based on Impact.