Find your content:

Search form

You are here

Can you query/write to a MySQL database from apex code?

 
Share

Is it possible to work with a MySQL database directly from Salesforce? If not, is the main approach to create some sort of web service to sit in the middle between the two?


Attribution to: Ryan Elkins

Possible Suggestion/Solution #1

Not possible directly, salesforce does not allow TCP connections which would be required to directly connect to mysql. It only allows HTTP(S) callouts, so an intermediate webservice of some sort if required to proxy the HTTP(S) traffic to the mysql protocol.


Attribution to: ca_peterson
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/286

My Block Status

My Block Content