Skip to content

MySQL

Programmatic Example

CREATE DATACONNECTION mysql_connection CXNPROPERTIES
(
  'connection_type'='JDBC',
  'jdbc_driver'='mysql',
  'host'='<A cloud url or host accessible from the application>',
  'port'='<Port to connect to the DB>',
  'user_key'='awssm://my-username',
  'password_key'='awssm://my-password',
  'jdbc.db.name'='<Default database to connect to>'
);