简体   繁体   English

在MySQL工作台中执行GRANT命令时拒绝用户访问

[英]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 ' '

  1. With the current user I am able to perform all operation , but I want to add more users. 使用当前用户,我可以执行所有操作,但是我想添加更多用户。

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.

相关问题 Mysql Workbench错误1044/1142:访问/授权命令被拒绝给用户``@'localhost' - Mysql workbench Error 1044 / 1142: Access / Grant command denied to user ''@'localhost' for MySQL的:授予用户拒绝命令 - mysql: grant command denied for user 授予用户访问权限在mysql中被拒绝 - Grant user access denied in mysql 如何解决“mysql工作台窗口中用户'root'@'localhost'的访问被拒绝” - How to resolve “access denied for user 'root'@'localhost' in mysql workbench windows” 向管理员用户授予所有权限时拒绝 MySQL 访问 - MySQL Access denied on grant all privileges with an admin user 尝试授予权限时,用户 'root'@'localhost' 的访问被拒绝。 如何授予权限? - Access denied for user 'root'@'localhost' while attempting to grant privileges. How do I grant privileges? 创建新用户时拒绝mysql访问 - mysql access denied while creating new user 在MySQL Amazon RDS中执行存储过程时,显示访问被拒绝 - While Executing Stored Procedure in MySQL Amazon RDS Show Access Denied 执行代码时,对用户“ root” @“ localhost”的MySQL访问被拒绝(Windows 7) - MySQL Access denied for user 'root'@'localhost' when executing code (Windows 7) 用于MySQL访问的Toad被拒绝但Workbench连接正常 - Toad for MySQL Access Denied But Workbench connects fine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM