I am trying to import a sql file into a 2nd gen cloud sql instance, using the web based cloud console, but it seems to be failing with the following error
ERROR 1227 (42000) at line 28: Access denied; you need (at least one of) the
SUPER privilege(s) for this operation
Not sure if its a bug at google's end or I am doing something wrong.
I am able to create a 2nd generation sql instance and log into the instance using the instructions here https://cloud.google.com/sql/docs/create-user
But I can't grant any privileges in there (for root user)
$mysql --host=xxx.xxx.xxx.xxx --user=root --password
mysql> select User, Host, Password from mysql.user;
+---------+-----------+-------------------------------------------+
| User | Host | Password |
+---------+-----------+-------------------------------------------+
| root | % | *81F5E21E35407D884A6CD4A731AEBFB6AF209E1B |
| newuser | localhost | |
+---------+-----------+-------------------------------------------+
mysql> GRANT ALL ON `%`.*;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax
to use near '' at line 1
I have a feeling that since I am unable to grant all privileges and root@localhost does not exist, its unable to import data. Anybody else experienced this isue while importing data into 2nd gen cloud sql.