Skip to content

Commit c624fc4

Browse files
authored
Merge pull request #2528 from g2vinay/fix-links-sql-docs
Update SQL ref docs.
2 parents 8b9e21a + d96249c commit c624fc4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs-ref-services/latest/mysql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ Connect to Azure Database for MySQL from your applications using the open-source
3333
Connect to Azure Database for MySQL using JDBC and select all records in the sales table. You can get the JDBC connection string for the database from the Azure Portal.
3434

3535
```java
36-
String url = String.format("jdbc:mysql://fabrikamysql.mysql.database.azure.com:3306/fabrikamdb?verifyServerCertificate=true&useSSL=true&requireSSL=false");
36+
String url = String.format("jdbc:mysql://[your-database-hostname].mysql.database.azure.com:3306/[your-database-name]?verifyServerCertificate=true&useSSL=true&requireSSL=[true|false]&user=[your-username]&password=[your-password]");
3737
try {
38-
Connection conn = DriverManager.getConnection(url, "frank@fabrikamysql", "aBcDeFgHiJkL");
38+
Connection conn = DriverManager.getConnection(url, "USERNAME", "PASSWORD");
3939
String selectSql = "SELECT * FROM SALES";
4040
Statement statement = conn.createStatement();
4141
ResultSet resultSet = statement.executeQuery(selectSql);

docs-ref-services/latest/postgresql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Connect to Azure Database for PostgreSQL from your applications using the open-s
3333
Connect to Azure Database for PostgreSQL using JDBC and select all records in the sales table. You can get the JDBC connection string for the database from the Azure Portal.
3434

3535
```java
36-
String url = String.format("jdbc:postgresql://mypostgresdb.postgres.database.azure.com:5432/mydb?user=frank@mypostgresdb&password=AbCdEfGhIjK&ssl=true");
36+
String url = String.format("jdbc:postgresql://[your-database-hostname].postgres.database.azure.com:5432/[your-database-name]?user=[your-username]@[your-database-hostname]&password=[your-password]&ssl=true");
3737
Connection connection = null;
3838
try {
3939
connection = DriverManager.getConnection(url);

0 commit comments

Comments
 (0)