加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

ERROR 1133 (42000): Can't find any matching row in&

(2012-09-25 22:24:09)
标签:

error1133(42000)

mysql

grant

新建用户

杂谈

分类: mysql

从书上抄了以下两句执行时报题目所示错误

mysql> GRANT RELOAD,PROCESS ON *.* TO 'admin'@'localhost';
mysql> GRANT USAGE ON *.* TO 'dummy'@'localhost';

 

执行结果如下:

mysql> GRANT RELOAD,PROCESS ON *.* TO 'admin'@'localhost';
ERROR 1133 (42000): Can't find any matching row in the user table
mysql> GRANT USAGE ON *.* TO 'dummy'@'localhost';
ERROR 1133 (42000): Can't find any matching row in the user table

 

其实如果事先在mysql.user表中存在admin和dummy两个用户就正常了。

另外,将这两句末尾加上identified by '密码' 也就正常了

mysql> GRANT select ON *.* TO 'admin'@'localhost' identified by '123';
Query OK, 0 rows affected (0.00 sec)

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有