【发布时间】:2016-04-25 18:11:14
【问题描述】:
我正在尝试使用基于 Web 的云控制台将 sql 文件导入第二代云 sql 实例,但似乎失败并出现以下错误
ERROR 1227 (42000) at line 28: Access denied; you need (at least one of) the
SUPER privilege(s) for this operation
不确定这是谷歌的错误还是我做错了什么。
我能够创建第二代 sql 实例并使用此处的说明登录实例 https://cloud.google.com/sql/docs/create-user
但我不能在那里授予任何权限(对于 root 用户)
$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
我有一种感觉,由于我无法授予所有权限并且root@localhost不存在,因此无法导入数据。其他人在将数据导入第二代云 sql 时遇到此问题。
【问题讨论】:
标签: google-app-engine google-cloud-platform google-cloud-sql