Skip to content

Commit 4ff6dc9

Browse files
Merge pull request #89052 from damabe/1570680-Part2
SEOImprovements: User Story 1570680, Part 2
2 parents 6c57a7f + af2e94c commit 4ff6dc9

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

articles/mysql/connect-java.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Get the connection information needed to connect to the Azure Database for MySQL
3232
2. From the left-hand menu in Azure portal, select **All resources**, and then search for the server you have created (such as **mydemoserver**).
3333
3. Select the server name.
3434
4. From the server's **Overview** panel, make a note of the **Server name** and **Server admin login name**. If you forget your password, you can also reset the password from this panel.
35-
![Azure Database for MySQL server name](./media/connect-java/1_server-overview-name-login.png)
35+
![Azure Database for MySQL server name](./media/connect-java/azure-database-mysql-server-name.png)
3636

3737
## Connect, create table, and insert data
3838
Use the following code to connect and load the data using the function with an **INSERT** SQL statement. The [getConnection()](https://mariadb.com/kb/en/library/about-mariadb-connector-j/#using-drivermanager) method is used to connect to MySQL. Methods [createStatement()](https://mariadb.com/kb/en/library/about-mariadb-connector-j/#creating-a-table-on-a-mariadb-or-mysql-server) and execute() are used to drop and create the table. The prepareStatement object is used to build the insert commands, with setString() and setInt() to bind the parameter values. Method executeUpdate() runs the command for each set of parameters to insert the values.

0 commit comments

Comments
 (0)