解决:1410 - You are not allowed to create a user with GRANT
AI 摘要salmon-ai
本文详细解析了 MySQL 授权时出现 “1410 - You are not allowed to create a user with GRANT” 报错的原因与解决方法。文章指出,创建用户
问题
在学习 mysql 授权时,发现授权报错。

解决
由于我授权指定的主机名是 “localhost”。
sql
create user u1@localhost identified by '123';
所以授权时也需要指定主机名。
sql
grant select on table st.student to u1@localhost;

评论
0 条—
还没有评论,来说第一句