mysql - 失去对 MySql 服务器的 Azure 数据库的服务器管理员用户访问权限

标签 mysql database azure database-administration azure-mysql-database

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

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

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

最佳答案

您应该能够使用 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.

关于mysql - 失去对 MySql 服务器的 Azure 数据库的服务器管理员用户访问权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53279417/

相关文章:

mysql - 如何进行 SQL 查询以返回 checkin 和 checkout 之间的时间差?

mysql - 在 MySQL 中同时运行多个创建触发器

python - 在 Azure Devops 或 Azure 机器学习中使用 Neo4j

azure - 如何为 PostgreSql 单服务器的 Azure 数据库创建服务主体

PHP PDO fetchAll() 在选择临时表时返回空数组

mysql - MySQL 中何时使用单引号、双引号和反引号

mysql - Amazon Aurora 数据库集群无法正确自动平衡

java - 在数据库的 <div> 标签中显示换行符

azure - 如何在Powershell Core中连接AzAccount(无提示)?

php - PHP MySQLi输出问题