Skip to content

Commit

Permalink
Merge pull request #137 from hyoshioka0128/patch-91
Browse files Browse the repository at this point in the history
Update how-to-fix-corrupt-database.md (Typo "flexible server"→"Flexib…
  • Loading branch information
Court72 authored Nov 20, 2024
2 parents 77e2d60 + 9247637 commit 6415761
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions articles/mysql/flexible-server/how-to-fix-corrupt-database.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ms.topic: troubleshooting

Database corruption can cause downtime for your application. It's also critical to resolve corruption problems in time to avoid data loss. When database corruption occurs, you see this error in your server logs: `InnoDB: Database page corruption on disk or a failed.`

In this article, you learn how to resolve database or table corruption problems. Azure Database for MySQL flexible server uses the InnoDB engine. It features automated corruption checking and repair operations. InnoDB checks for corrupt pages by running checksums on every page it reads. If it finds a checksum discrepancy, it will automatically stop the Azure Database for MySQL flexible server instance.
In this article, you learn how to resolve database or table corruption problems. Azure Database for MySQL Flexible Server uses the InnoDB engine. It features automated corruption checking and repair operations. InnoDB checks for corrupt pages by running checksums on every page it reads. If it finds a checksum discrepancy, it will automatically stop the Azure Database for MySQL Flexible Server instance.

Try the following options to quickly mitigate your database corruption problems.

Expand All @@ -38,7 +38,7 @@ We recommend that you resolve corruption problems by using a *dump and restore*

> [!Important]
>
> - Make sure you have configured a firewall rule to access the server from your client machine. For more information, see [configure a firewall rule on Azure Database for MySQL single server](../single-server/how-to-manage-firewall-using-portal.md) and [configure a firewall rule on Azure Database for MySQL flexible server](how-to-connect-tls-ssl.md).
> - Make sure you have configured a firewall rule to access the server from your client machine. For more information, see [configure a firewall rule on Azure Database for MySQL single server](../single-server/how-to-manage-firewall-using-portal.md) and [configure a firewall rule on Azure Database for MySQL Flexible Server](how-to-connect-tls-ssl.md).
> - Use SSL option `--ssl-cert` for mysqldump if you have SSL enabled.
Create a backup file from the command line by using mysqldump. Use this command:
Expand All @@ -49,15 +49,15 @@ $ mysqldump [--ssl-cert=/path/to/pem] -h [host] -u [uname] -p[pass] [dbname] > [

Parameter descriptions:
- `[ssl-cert=/path/to/pem]`: The path to the SSL certificate. Download the SSL certificate on your client machine and set the path in it in the command. Don't use this parameter if SSL is disabled.
- `[host]`: Your Azure Database for MySQL flexible server instance.
- `[host]`: Your Azure Database for MySQL Flexible Server instance.
- `[uname]`: Your server admin user name.
- `[pass]`: The password for your admin user.
- `[dbname]`: The name of your database.
- `[backupfile.sql]`: The file name of your database backup.

> [!Important]
> - For Azure Database for MySQL single server, use the format `admin-user@servername` to replace `myserveradmin` in the following commands.
> - For Azure Database for MySQL flexible server, use the format `admin-user` to replace `myserveradmin` in the following commands.
> - For Azure Database for MySQL Flexible Server, use the format `admin-user` to replace `myserveradmin` in the following commands.
If a specific table is corrupt, select specific tables in your database to back up:
```
Expand All @@ -81,7 +81,7 @@ Here's an example that restores `testdb` from a backup file created with mysqldu

> [!Important]
> - For Azure Database for MySQL single server, use the format `admin-user@servername` to replace `myserveradmin` in the following command.
> - For Azure Database for MySQL flexible server, use the format ```admin-user``` to replace `myserveradmin` in the following command.
> - For Azure Database for MySQL Flexible Server, use the format ```admin-user``` to replace `myserveradmin` in the following command.
```
$ mysql --ssl-cert=</path/to/pem> -h mydemoserver.mysql.database.azure.com -u myserveradmin -p testdb < testdb_backup.sql
Expand All @@ -90,7 +90,7 @@ $ mysql --ssl-cert=</path/to/pem> -h mydemoserver.mysql.database.azure.com -u my
## Next steps
If the preceding steps don't resolve the problem, you can always restore the entire server:
- [Restore server in Azure Database for MySQL single server](../single-server/how-to-restore-server-portal.md)
- [Restore server in Azure Database for MySQL flexible server](how-to-restore-server-portal.md)
- [Restore server in Azure Database for MySQL Flexible Server](how-to-restore-server-portal.md)



0 comments on commit 6415761

Please sign in to comment.