解决:1410 - You are not allowed to create a user with GRANT

2023-12-28数据库1 分钟190 次阅读
AI 摘要salmon-ai

本文详细解析了 MySQL 授权时出现 “1410 - You are not allowed to create a user with GRANT” 报错的原因与解决方法。文章指出,创建用户

问题

在学习 mysql 授权时,发现授权报错。
image.png

解决

由于我授权指定的主机名是 “localhost”。

sql 复制代码
create user u1@localhost identified by '123';

所以授权时也需要指定主机名。

sql 复制代码
grant select on table st.student to u1@localhost;
image.png
觉得有用就点个赞,不用登录也能读

评论

0 条
登录 之后才能评论
—
还没有评论,来说第一句