26
Views
5
Comments
Failed to connect to MySQL with personal environment and web hosting
Question
Application Type
Mobile

Notes:

  • I use personal environment NOT enterprise environment.
  • I use web hosting database NOT AWS / GCP / another cloud services.
  • I have added whitelist ****.outsystemscloud.com and my domain to the hosting.

but I failed to test my connection. It always display "Connection String test failed: Unable to connect to any of the specified MySQL hosts.".
Connection string: user Uid=abod6155_ukgsadmin; Pwd=<hidden>; server=****.xyz; port=3306; database=abod6155_ukgs.

Is it really true that I must convert to enterprise not personal to use this feature? thank you.


ss.png
2024-03-23 18-16-49
Bryan Villalobos

Hi @Andrew Osmond ,


You can have a look at this post

It's not clear why connection to MySQL have some issues. But if you use the Advanced Configuration using this format in the connection string (including the username and password), then you should be able to make it work:

Server=SERVER; Port=PORT; Database=DB; Uid=USERNAME; Pwd=PASSWORD 

Also, you do not need to upgrade your environment to enterprise. We connected to the server using our personal environment and it works.


Regards,

Bryan

UserImage.jpg
Andrew Osmond

Thank you. Is it true that the withlist is our environmental platform which is: ****.outsystemscloud.com?

2024-03-23 18-16-49
Bryan Villalobos


There is no whitelisting applied to our OutSystems Cloud even in personal environments. Though probably it will block those suspicious sites.

However, you can implement whitelisting on your MySQL environment server so it only allows your OutSystems environment to connect, for additional security.

Just wanted to ask, did that connection string worked on your end?


Regards,

Bryan

2019-01-07 16-04-16
Siya
 
MVP

First of all you need to find out the public facing IP address of your environment and that IP needs to be whitelisted on the MySQL end.

Here is the step by step procedure to find the public facing IP address of your environment

  1. Open any project in Service Studio
  2. Goto Logic -> Integration  -> REST -> Consume REST API -> Add Single Method
  3. Gotto Test tab and enter URL as  : https://api.ipify.org?format=json and click on Test
  4. Wait for the result and you will be able to see your IP address.

2024-10-03 06-54-46
PRAVEEN RAJKUMAR

@Andrew Osmond Confirm that the OutSystems environment is using a compatible version of the MySQL connector. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.