Skip to content

Commit a40a928

Browse files
committed
Refactor stored procedures
1 parent 9b75d6d commit a40a928

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-2
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41850,6 +41850,11 @@
4185041850
"source_path": "articles/sql-database/sql-database-managed-instance-pools.md",
4185141851
"redirect_url": "/azure/sql-database/sql-database-instance-pools",
4185241852
"redirect_document_id": false
41853+
},
41854+
{
41855+
"source_path": "articles/mysql/reference-data-in-stored-procedures.md",
41856+
"redirect_url": "/azure/mysql/reference-stored-procedures",
41857+
"redirect_document_id": false
4185341858
}
4185441859
]
4185541860
}

articles/mysql/TOC.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@
229229
href: /rest/api/mysql
230230
- name: Resource Manager template
231231
href: /azure/templates/microsoft.dbformysql/allversions
232-
- name: Data-in replication stored procedures
233-
href: reference-data-in-stored-procedures.md
232+
- name: Azure stored procedures
233+
href: reference-stored-procedures.md
234234
- name: Resources
235235
items:
236236
- name: Deployment templates
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: Azure Database for MySQL Stored Procedures
3+
description: This article introduces stored procedures specific to Azure Database for MySQL.
4+
author: ajlam
5+
ms.author: andrela
6+
ms.service: mysql
7+
ms.topic: conceptual
8+
ms.date: 09/19/2019
9+
---
10+
11+
# Azure Database for MySQL Stored Procedures
12+
13+
## Data-in Replication Stored Procedures
14+
15+
Data-in Replication allows you to synchronize data from a MySQL server running on-premises, in virtual machines, or database services hosted by other cloud providers into the Azure Database for MySQL service.
16+
17+
The following stored procedures are used to set up or remove Data-in Replication between a master and replica.
18+
19+
|**Stored Procedure Name**|**Input Parameters**|**Output Parameters**|**Usage Note**|
20+
|-----|-----|-----|-----|
21+
|*mysql.az_replication_change_master*|master_host<br/>master_user<br/>master_password<br/>master_port<br/>master_log_file<br/>master_log_pos<br/>master_ssl_ca|N/A|To transfer data with SSL mode, pass in the CA certificate’s context into the master_ssl_ca parameter. </br><br>To transfer data without SSL, pass in an empty string into the master_ssl_ca parameter.|
22+
|*mysql.az_replication _start*|N/A|N/A|Starts replication.|
23+
|*mysql.az_replication _stop*|N/A|N/A|Stops replication.|
24+
|*mysql.az_replication _remove_master*|N/A|N/A|Removes the replication relationship between the master and replica.|
25+
|*mysql.az_replication_skip_counter*|N/A|N/A|Skips one replication error.|
26+
27+
To set up data-in replication between a master and a replica in Azure Database for MySQL, refer to [how to configure data-in replication](howto-data-in-replication.md).
28+
29+
## Other Stored Procedures
30+
31+
The following stored procedures are available in Azure Database for MySQL to manage your server.
32+
33+
|**Stored Procedure Name**|**Input Parameters**|**Output Parameters**|**Usage Note**|
34+
|-----|-----|-----|-----|
35+
|*mysql.az_kill*|processlist_id|N/A|Equivalent to [`KILL CONNECTION`](https://dev.mysql.com/doc/refman/8.0/en/kill.html) command. Will terminate the connection associated with the provided processlist_id after terminating any statement the connection is executing.|
36+
|*mysql.az_kill_query*|processlist_id|N/A|Equivalent to [`KILL QUERY`](https://dev.mysql.com/doc/refman/8.0/en/kill.html) command. Will terminate the statement the connection is currently executing. Leaves the connection itself alive.|
37+
|*mysql.az_load_timezone*|N/A|N/A|Loads time zone tables to allow the `time_zone` parameter to be set to named values (ex. "US/Pacific").|

0 commit comments

Comments
 (0)