--- title: "system.db.setDatasourceConnectURL" description: "Changes the connect URL for a given database connection." --- # system.db.setDatasourceConnectURL > Changes the connect URL for a given database connection. This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions [Permission Type](projects\project-properties\project-properties.md#client---permissions): 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. ## Syntax `system.db.setDatasourceConnectURL(name, connectUrl)` ### Parameters Type | Parameter | Description ------- | ------- | ------ String | `name` | The name of the database connection in Ignition. String | `connectUrl` | The new connect URL. ### Returns Nothing ### Scope All ## Code Examples ```python title="Example #1" # Example 1: system.db.setDatasourceConnectURL("MySQL", "jdbc:mysql://localhost:3306/test") ```