MySql 服务器的 azure 数据库的服务器管理员用户访问权限丢失

Lost server admin user access for azure database for MySql server

我们最近迁移了核心 angular 应用程序的数据库,以使用 Azure 数据库 MySQL 并为我们创建了服务器管理员用户。最近,我们错误地删除了服务器管理员帐户的权限,并失去了该帐户对我们数据库的所有访问权限。

由于 azure MySQL 数据库只能有一个服务器管理员用户,请告诉我如何授予服务器管理员帐户所有权限,因为我们现在在创建新用户或访问时被拒绝访问 MySQL.user table.

我今天花了很多时间在谷歌上搜索答案,但没有找到任何关于我面临的问题的参考。如果需要任何其他详细信息,请告诉我,我很乐意提供。

您应该可以使用 Backup and restore in Azure Database for MySQL

来解决这个问题

Azure Database for MySQL automatically creates server backups and stores them in user configured locally redundant or geo-redundant storage. Backups can be used to restore your server to a point-in-time. Backup and restore are an essential part of any business continuity strategy because they protect your data from accidental corruption or deletion.

Backups
Azure Database for MySQL takes full, differential, and transaction log backups. These backups allow you to restore a server to any point-in-time within your configured backup retention period. The default backup retention period is seven days.

重置服务器管理员密码会自动将服务器管理员权限重置为默认值。如果您不小心撤销了一项或多项服务器管理员权限,请考虑重置您的服务器管理员密码。

参考:https://docs.microsoft.com/en-us/azure/mysql/howto-create-manage-server-portal