3

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?

1 Answer 1

7

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.

3
  • This is what I thought but I'm glad you could help to confirm it, thanks. Aug 9, 2012 at 23:31
  • @ca_peterson, any changes on this? I know we can do it in Java, for instance, and make call from apex to my Java program. But directly from apex? Feb 16, 2017 at 15:11
  • No way to call anything other than HTTP from apex. You can't implement a binary protocol like mysql needs. Feb 16, 2017 at 17:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .