As root, as well as with user SRTDB, I am attempting an IMPORT to a database:
The IMPORT is failing with when I use root or srtdb user account:
ERROR 1227 (42000) at line 18: Access denied; you need (at least one of) the SUPER, SYSTEM_VARIABLES_ADMIN or SESSION_VARIABLES_ADMIN privilege(s) for this operation
As root when I do:
grant SESSION_VARIABLES_ADMIN on . to ‘srtdb’@‘%’;
I get the below error:
ERROR 1227 (42000): Access denied; you need (at least one of) the GRANT OPTION privilege(s) for this operation
On MySQL Workbench I granted the GRANT OPTION privilege.
mysql> show grants for ‘root’@‘%’;
±---------------------------------------------------+
| Grants for root@% |
±---------------------------------------------------+
| GRANT USAGE ON . TO root@% WITH GRANT OPTION |
| GRANT ALL PRIVILEGES ON srtadmin.* TO root@% |
| GRANT cloudsqlsuperuser@% TO root@% |
±---------------------------------------------------+
But I still cannot do the IMPORT and I still cannot do the following command:
grant SESSION_VARIABLES_ADMIN on . to ‘srtdb’@‘%’;
How do I set a global variable in Cloud MySQL.
I need to get that done first, then can attempt the IMPORT again.
Thanks
Gillian