This function is used in Python Scripting.


Changes the connect URL for a given database connection.

Client Permission Restrictions

Permission Type: Datasource Management

Client access to this scripting function is blocked to users that do not meet the role/zone requirements for the above permission type. This function is unaffected when run in the Gateway scope.


system.db.setDatasourceConnectURL(name, connectUrl)

  • Parameters

String name - The name of the database connection in Ignition.

String connectUrl - The new connect URL.

  • Returns


  • Scope

Gateway, Vision Client, Perspective Session

Code Examples
Code Snippet
# Example:
system.db.setDatasourceConnectURL("MySQL", "jdbc:mysql://localhost:3306/test")

system db setDatasourceConnectURL, db.setDatasourceConnectURL