Skip to content

Commit e891650

Browse files
authored
remove service binding
1 parent 31990ca commit e891650

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

articles/spring-apps/how-to-bind-mysql.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -71,32 +71,6 @@ Follow these steps to configure your Spring app to connect to an Azure Database
7171
--system-identity mysql-identity-id=$AZ_IDENTITY_RESOURCE_ID
7272
```
7373

74-
### [Service Binding](#tab/Service-Binding)
75-
76-
> [!NOTE]
77-
> We recommend using Service Connector instead of Service Binding to connect your app to your database. Service Binding is going to be deprecated in favor of Service Connector. For instructions, see the Service Connector tab.
78-
79-
1. Note the admin username and password of your Azure Database for MySQL account.
80-
81-
1. Connect to the server, create a database named **testdb** from a MySQL client, and then create a new non-admin account.
82-
83-
1. In the Azure portal, on your **Azure Spring Apps** service page, look for the **Application Dashboard**, and then select the application to bind to your Azure Database for MySQL instance. This is the same application that you updated or deployed in the previous step.
84-
85-
1. Select **Service binding**, and then select the **Create service binding** button.
86-
87-
1. Fill out the form, selecting **Azure MySQL** as the **Binding type**, using the same database name you used earlier, and using the same username and password you noted in the first step.
88-
89-
1. Restart the app, and this binding should now work.
90-
91-
1. To ensure that the service binding is correct, select the binding name, and then verify its detail. The `property` field should look like this:
92-
93-
```properties
94-
spring.datasource.url=jdbc:mysql://some-server.mysql.database.azure.com:3306/testdb?useSSL=true&requireSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC
95-
spring.datasource.username=admin@some-server
96-
spring.datasource.password=abc******
97-
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
98-
```
99-
10074
### [Terraform](#tab/Terraform)
10175

10276
The following Terraform script shows how to set up an Azure Spring Apps app with Azure Database for MySQL.

0 commit comments

Comments
 (0)