[英]Access denied for user while executing the GRANT command in MySQL workbench
grant select ON . 授予select ON 。 TO 'username'@'%' with GRANT OPTION;
使用GRANT OPTION转换为'username'@'%'; grant select ON .
授予select ON 。 TO 'username'@'IPaddress' with GRANT OPTION;
带有GRANT OPTION的“用户名” @“ IP地址”;
All the above statements errors out with the Error Code: 1044. Access denied for user 'user'@'IPAddress' to database 上面的所有语句错误均出现,错误代码为:1044。拒绝用户'user'@'IPAddress'访问数据库
FYI I am logged in as a user with all the permissions -- 'GRANT ALL PRIVILEGES ON . 仅供参考,我以具有所有权限的用户身份登录-'GRANT ALL PRIVILEGES ON 。 '
'
You need to be logged in with a user that has WITH GRANT OPTION
as well, such as root@'localhost'. 您还需要以具有
WITH GRANT OPTION
的用户登录,例如root @'localhost'。 Otherwise, you can do everything else, BUT create new user and issue new grants/permissions. 否则,您可以做其他所有事情,但要创建新用户并颁发新的授予/许可。
GRANT OPTION Enable privileges to be granted to or removed from other accounts.
GRANT OPTION允许授予其他帐户特权或从其他帐户中删除特权。 Levels: Global, database, table, procedure.
级别:全局,数据库,表,过程。
You can read more here are dev.mysql . 您可以在这里阅读更多内容dev.mysql 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.