Skip to content

Commit f83ba65

Browse files
authored
Merge pull request #211715 from code-sidd/timezone
timezone_whatsnew
2 parents d9d64db + 1fabadd commit f83ba65

File tree

3 files changed

+9
-40
lines changed

3 files changed

+9
-40
lines changed

articles/mysql/flexible-server/how-to-configure-server-parameters-cli.md

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -72,26 +72,6 @@ az mysql flexible-server parameter set --name init_connect --resource-group myre
7272
7373
## Working with the time zone parameter
7474

75-
### Populating the time zone tables
76-
77-
The time zone tables on your server can be populated by calling the `mysql.az_load_timezone` stored procedure from a tool like the MySQL command line or MySQL Workbench.
78-
79-
> [!NOTE]
80-
> If you are running the `mysql.az_load_timezone` command from MySQL Workbench, you may need to turn off safe update mode first using `SET SQL_SAFE_UPDATES=0;`.
81-
82-
```sql
83-
CALL mysql.az_load_timezone();
84-
```
85-
86-
> [!IMPORTANT]
87-
>You should restart the server to ensure the time zone tables are properly populated.<!-- fIX me To restart the server, use the [Azure portal](howto-restart-server-portal.md) or [CLI](howto-restart-server-cli.md). -->
88-
89-
To view available time zone values, run the following command:
90-
91-
```sql
92-
SELECT name FROM mysql.time_zone_name;
93-
```
94-
9575
### Setting the global level time zone
9676

9777
The global level time zone can be set using the [az mysql flexible-server parameter set](/cli/azure/mysql/flexible-server/parameter) command.
@@ -112,6 +92,8 @@ SET time_zone = 'US/Pacific';
11292

11393
Refer to the MySQL documentation for [Date and Time Functions](https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_convert-tz).
11494

95+
>[!Note]
96+
> To change time zone at session level, Server parameter time_zone has to be updated globally to required timezone at least once, in order to update the [mysql.time_zone_name](https://dev.mysql.com/doc/refman/8.0/en/time-zone-support.html) table.
11597
11698
## Next steps
11799

articles/mysql/flexible-server/how-to-configure-server-parameters-portal.md

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,26 +51,6 @@ If the server parameter you want to update is non-modifiable, you can optionally
5151
5252
## Working with the time zone parameter
5353

54-
### Populating the time zone tables
55-
56-
The time zone tables on your server can be populated by calling the `mysql.az_load_timezone` stored procedure from a tool like the MySQL command line or MySQL Workbench.
57-
58-
> [!NOTE]
59-
> If you are running the `mysql.az_load_timezone` command from MySQL Workbench, you may need to turn off safe update mode first using `SET SQL_SAFE_UPDATES=0;`.
60-
61-
```sql
62-
CALL mysql.az_load_timezone();
63-
```
64-
65-
> [!IMPORTANT]
66-
>You should restart the server to ensure the time zone tables are properly populated.<!-- FIX ME To restart the server, use the [Azure portal](how-to-restart-server-portal.md) or [CLI](how-to-restart-server-cli.md).-->
67-
68-
To view available time zone values, run the following command:
69-
70-
```sql
71-
SELECT name FROM mysql.time_zone_name;
72-
```
73-
7454
### Setting the global level time zone
7555

7656
The global level time zone can be set from the **Server parameters** page in the Azure portal. The below sets the global time zone to the value "US/Pacific".
@@ -87,6 +67,10 @@ SET time_zone = 'US/Pacific';
8767

8868
Refer to the MySQL documentation for [Date and Time Functions](https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_convert-tz).
8969

70+
>[!Note]
71+
> To change time zone at session level, Server parameter time_zone has to be updated globally to required timezone at least once, in order to update the [mysql.time_zone_name](https://dev.mysql.com/doc/refman/8.0/en/time-zone-support.html) table.
72+
73+
9074
## Next steps
9175

9276
- How to configure [server parameters in Azure CLI](./how-to-configure-server-parameters-cli.md)

articles/mysql/flexible-server/whats-new.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ This article summarizes new releases and features in Azure Database for MySQL -
2828

2929
With data encryption with customer-managed keys (CMKs) for Azure Database for MySQL - Flexible Server Preview, you can bring your own key (BYOK) for data protection at rest and implement separation of duties for managing keys and data. Data encryption with CMKs is set at the server level. For a given server, a CMK, called the key encryption key (KEK), is used to encrypt the data encryption key (DEK) used by the service. With customer managed keys (CMKs), the customer is responsible for and in a full control of key lifecycle management (key creation, upload, rotation, deletion), key usage permissions, and auditing operations on keys. [Learn More](concepts-customer-managed-key.md)
3030

31+
- **Change Timezone of your Azure Database for MySQL - Flexible Server in a single step**
32+
33+
Previously to change time_zone of your Azure Database for MySQL - Flexible Server required two steps to take effect. Now you no longer need to call the procedure mysql.az_load_timezone() to populate the mysql.time_zone_name table. Flexible Server timezone can be changed directly by just changing the server parameter time_zone from [portal](./how-to-configure-server-parameters-portal.md#working-with-the-time-zone-parameter) or [CLI](./how-to-configure-server-parameters-cli.md#working-with-the-time-zone-parameter).
3134
## August 2022
3235

3336
- **Server logs for Azure Database for MySQL - Flexible Server**

0 commit comments

Comments
 (0)