码迷,mamicode.com
首页 > 数据库 > 详细

错误代码: 1045 Access denied for user 'skyusers'@'%' (using password: YES)

时间:2015-07-05 12:31:38      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:mysql-存储过程

1. 错误描述

GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY ".";

1 queries executed, 0 success, 1 errors, 0 warnings

查询:grant all privileges on *.* to root@"%" identified by "."

错误代码: 1045
Access denied for user ‘skyusers‘@‘%‘ (using password: YES)

执行耗时   : 0 sec
传送时间   : 0 sec
总耗时      : 0.003 sec

2. 错误原因

连接数据库的账户是skyusers,而不是root

3. 解决办法

修改下面的MySQL命令
GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY ".";
修改成
GRANT ALL PRIVILEGES ON *.* TO skyusers@"%" IDENTIFIED BY ".";

版权声明:本文为博主原创文章,未经博主允许不得转载。

错误代码: 1045 Access denied for user 'skyusers'@'%' (using password: YES)

标签:mysql-存储过程

原文地址:http://blog.csdn.net/you23hai45/article/details/46761977

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!