MySQL Flex in read-only mode after SQL import

Manuel Capinha 20 Reputation points
2023-10-09T21:11:01.71+00:00

We have a MySQL Flex database that has gone into read-only mode twice. Both times it happened during an import of a SQL dump.

Can someone help:

  • understand why this is being triggered;
  • understand how to recover from it? We've noticed that it goes away overnight but it we would like a quicker solution

This is the error we get when trying to run a write query on the service:

SQL Error [1290] [HY000]: The MySQL server is running with the --read-only option so it cannot execute this statement
  The MySQL server is running with the --read-only option so it cannot execute this statement
 

Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,408 questions
Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
986 questions
0 comments No comments
{count} votes

Accepted answer
  1. RahulRandive 10,486 Reputation points Volunteer Moderator
    2023-10-09T21:49:50.22+00:00

    Hi @Manuel Capinha

    Please inspect the server's storage, as it may be reaching capacity during the data import operation.

    You can verify this by accessing the portal and navigating to Monitoring-Metrics.

    If this is indeed the issue, you may need to consider increasing the storage capacity during data import.

    Snippet from the document-User's image

    Thank you!


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.