- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2023 12:32 AM
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)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2023 12:58 AM
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2023 12:58 AM
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2023 01:02 AM
Thanks for your response. Please help me to how to fill the Mid server. I see many options there
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2023 01:09 AM
@dev115415
You should check the mid server definition to find out which mid server can reach your database, and select that one.