Skip to content

Commit baf5217

Browse files
committed
Update slow query logs mysql cli
1 parent da81ad7 commit baf5217

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

articles/mysql/howto-configure-server-logs-in-cli.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
---
2-
title: Access server logs in Azure Database for MySQL by using Azure CLI
3-
description: This article describes how to access the server logs in Azure Database for MySQL by using the Azure CLI command-line utility.
4-
author: rachel-msft
5-
ms.author: raagyema
2+
title: Access slow query logs in Azure Database for MySQL by using Azure CLI
3+
description: This article describes how to access the slow query logs in Azure Database for MySQL by using the Azure CLI.
4+
author: andrela
5+
ms.author: ajlam
66
ms.service: mysql
77
ms.devlang: azurecli
88
ms.topic: conceptual
9-
ms.date: 05/29/2019
9+
ms.date: 06/12/219
1010
---
11-
# Configure and access server logs by using Azure CLI
12-
You can download the Azure Database for MySQL server logs by using Azure CLI, the Azure command-line utility.
11+
# Configure and access slow query logs by using Azure CLI
12+
You can download the Azure Database for MySQL slow query logs by using Azure CLI, the Azure command-line utility.
1313

1414
## Prerequisites
1515
To step through this how-to guide, you need:
1616
- [Azure Database for MySQL server](quickstart-create-mysql-server-database-using-azure-cli.md)
1717
- The [Azure CLI](/cli/azure/install-azure-cli) or Azure Cloud Shell in the browser
1818

19-
## Configure logging for Azure Database for MySQL
19+
## Configure logging
2020
You can configure the server to access the MySQL slow query log by taking the following steps:
21-
1. Turn on logging by setting the **slow\_query\_log** parameter to ON.
21+
1. Turn on slow query logging by setting the **slow\_query\_log** parameter to ON.
2222
2. Adjust other parameters, such as **long\_query\_time** and **log\_slow\_admin\_statements**.
2323

24-
To learn how to set the value of these parameters through Azure CLI, see [How to configure server parameters](howto-configure-server-parameters-using-cli.md).
24+
To learn how to set the value of these parameters through Azure CLI, see [How to configure server parameters](howto-configure-server-parameters-using-cli.md).
2525

2626
For example, the following CLI command turns on the slow query log, sets the long query time to 10 seconds, and then turns off the logging of the slow admin statement. Finally, it lists the configuration options for your review.
2727
```azurecli-interactive

0 commit comments

Comments
 (0)