- Newest
- Most votes
- Most comments
Hello.
Please use the following command to set the privilege "ROLE_ADMIN" to the database administrative user (such as the root user), and then try setting "SESSION_VARIABLES_ADMIN".
GRANT ROLE_ADMIN on *.* to root
While this ROLE_ADMIN command succeeds when running it under the admin user, subsequently trying to set the SESSION_VARIABLES_ADMIN privilege results in the same error as above: "ERROR 1227 (42000): Access denied; you need (at least one of) the GRANT OPTION privilege(s) for this operation".
By the way, is the database user used by "mysqlimport" the correct database administrator user (root user, etc.)?
Yes, I've tried running these commands with both the admin user and a separate user both of which I've tried assigning the appropriate privileges without success. I even reset the admin user password in the RDS console - which resets its privileges to the default.
Relevant content
- asked 8 months ago
- asked 2 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago
Hi Jared, did you find a solution to this problem?
I did not find a solution to this, but was able to reformat the .csv files into .sql format and import them using the mysql command line. This was not at all optimal, but the only way I could figure out how to import flat data.