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 年前檢視次數 1950 次
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

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南