Can't ALTER sys.sys_config with master user for MySQL v5.7.44 to v8

1

Current MySQL Engine: 5.7.44

Using the master user with the following query "ALTER TABLE sys_config ROW_FORMAT=DYNAMIC;" we're getting the following error: Access denied for user 'master'@'%' to database 'sys'.

This is blocking our ability to upgrade. Is there any possible way to do this ourselves or do we need assistance from AWS on this?

Dragola
已提问 2 个月前112 查看次数
1 回答
0
已接受的回答

Hi,

I would like to mention that the row format associated with the sys_config table should not effect the upgrade and should come as a warning. Also, as "sys" is a system managed database, the alter command is failing with the error of access denied to admin user as well.

when you start the upgrade please check "PrePatchCompatibility.log" I would like to mention that there are three types of issues you would notice in this log

  • ERROR : Correct these issues before upgrading to avoid compatibility issues.
  • WARNING : No fatal errors were found that would prevent an upgrade, but some potential issues were detected.
  • NOTICE : No known compatibility errors or issues were found. But you can check the NOTICE Level error logs.
  1. You can check the row format of sys.sys_config table using below query:

select TABLE_SCHEMA,TABLE_NAME,ROW_FORMAT,CREATE_OPTIONS from information_schema.tables where table_schema = 'sys';

  1. Please be noted that the user will not have access to sys.sys_config system table. If you try to update you will receive the following error:

ALTER TABLE sys_config ROW_FORMAT=DYNAMIC; ERROR 1044 (42000): Access denied for user 'testuser'@'%' to database 'sys'

RDS being a managed service certain actions are restricted. Users will have only the following permissions: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.MasterAccounts.html

sys.config is system table and it is managed by AWS. And users will not have access to it.

  1. Also this message is warning and this shouldn’t block your upgrade.
AWS
已回答 19 天前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则