Trying to add the File permission to MySQL RDS instance access denied

0

GRANT file ON %.* TO user@%with grant option    Error Code: 1045. Access denied for user 'user'@'%' (using password: YES)    0.000

  • Doesnt seem like Im able to Grant the File permission but all others are checked.

1개 답변
0

Hello There,

I understand that you are trying to enable ‘FILE’ permissions to the users in your RDS MySQL environment.

As RDS being a managed service, it is not possible to grant ‘FILE’ privilege to any user of RDS/RDS Aurora as the file permission requires access to the underlying file system. The essence of this restriction is to ensure stability and security of the platform. Thus in RDS/RDS Aurora, FILE privilege is not granted due to security reasons. You can refer to link [1] for more information on the privileges granted to your master user in RDS MySQL.

In most cases dealing with privileges on files, AWS customers want to move data to a file on the file system which as mentioned, is prohibited in RDS and RDS Aurora. So as a workaround in this situation would be to move the data to a different location other than the filesystem. For example, you can export the data to CSV format by selecting the data in the mysql command line client and piping the output to reformat the data as CSV.

[1] : Permissions available for the RDS Master user - https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.MasterAccounts.html

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠