用户'root'@'%'访问被拒绝

时间:2016-03-01 14:34:29

标签: mysql amazon-web-services

执行此查询时:

class MSV(ScrollView):
    x_exclusion_lower = NumericProperty(None, allownone=True)
    x_exclusion_upper = NumericProperty(None, allownone=True)
    x_exclusion = ReferenceListProperty(x_exclusion_lower, x_exclusion_upper)

    def on_touch_down(self, touch):
        pos_in_sv = self.to_local(*touch.pos)
        if (self.x_exclusion_lower is not None or self.x_exclusion_upper is not None) and (self.x_exclusion_lower is None or self.x_exclusion_lower <= pos_in_sv[0]) and \
                (self.x_exclusion_upper is None or self.x_exclusion_upper >= pos_in_sv[0]):
            touch.push()
            touch.apply_transform_2d(self.to_local)
            if self.dispatch_children('on_touch_down', touch):
                return True
            touch.pop()
        super(MSV, self).on_touch_down(touch)

我收到错误:

LOAD DATA INFILE 'C:\Users\oto@increase.dk\Documents\Unity\Marketo files\mkto_export_split_af.csv'
INTO TABLE DB_M3_Medium.Unity_Marketo
FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '"'
LINES TERMINATED BY '\r\n'
(@dummy, C_EMAILADDRESS, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy, 
@dummy, @dummy, @dummy, @dummy, @dummy, C_WANT_GENERAL_NEWSLETTER1, C_WANT_ASSETSTORE_NEWS1, C_WANT_ASSET24HOUR_DEALS1, @dummy, @dummy, C_WANT_PROMOTIONAL_OFFERS1, C_WANT_SIMWIZ_NEWS1, C_WANT_UT_CLOUD_NEWS1, C_WANT_UT_GAMES_NEWS1, @dummy, 
@dummy, C_WANT_ASSETSTORE_MADNESS_NEWS, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy, @dummy);

但是,我不希望这样,因为我做了一些搜索,大多数建议都是指授予对root用户的完全访问权限,而且我做了。

我已经在Error Code: 1045. Access denied for user 'root'@'%' (using password: YES) 0.047 sec 服务器上执行了GRANT ALL ON '%'.* TO root@'%';',我得到的回复是:mysql

除此之外,我觉得很奇怪,Query OK, 0 rows affected (0.00 sec)错误显示得如此之快(0.047秒),看起来它甚至没有超过LOAD DATA INFILE来请求服务器。

我使用的是Workbench,数据库托管在MySQL 5.6

0 个答案:

没有答案