---
title: Azure – You can now stop MySQL database - cubesys
description: If you are using Azure Database for MySQL server, you can now stop the server.This can be useful for dev/test environment where it is not required to get it running 24/7.When the server is in stopped state, the associated compute cost is no longer billed but the storage is.The MySQL…
---

[Latest News & Blogs - cubesys ](https://www.cubesys.com.au/blog)

# [Azure – You can now stop MySQL database - cubesys](https://www.cubesys.com.au/blog/azure-you-can-now-stop-mysql-database)

 Written by [cubesys](https://www.cubesys.com.au/blog/author/cubesys) | Feb 7, 2021 1:00:00 PM

If you are using Azure Database for MySQL server, you can now stop the server.

This can be useful for dev/test environment where it is not required to get it running 24/7.

When the server is in stopped state, the associated compute cost is no longer billed but the storage is.

The MySQL server can **stay up to 7 days** in stopped mode after the server will be automatically started again.

You can stop the MySQL server from the portal ([https://portal.azure.com/](https://portal.azure.com/)) or using Azure Cli

> az mysql server stop/start –name <server-name> -g <resource-group-name>

<https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image-124.png>

You can view the status of the server from the **Overview** blade thanks to the **Status** field

<https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image-125.png>

[View full post](https://www.cubesys.com.au/blog/azure-you-can-now-stop-mysql-database)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "cubesys"
  },
  "dateModified" : "2025-02-21T15:35:06.998Z",
  "datePublished" : "2021-02-07T13:00:00Z",
  "headline" : "Azure – You can now stop MySQL database",
  "image" : {
    "@type" : "ImageObject",
    "height" : 60,
    "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
    "width" : 60
  },
  "mainEntityOfPage" : "https://www.cubesys.com.au/blog/azure-you-can-now-stop-mysql-database",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "Latest News"
  }
}
```