无法给mysql数据库添加用户

donydat 2007-04-11 04:38:31
大家帮忙看看这是哪出错了

grant all on depot_development.* to 'dave'@'localhost';
错误提示:error 1133 can't find any matching row in the user table

我想这应该是没有dave这个用户,因为我已经建了depot_development这个数据库

但我不知道该怎么添加用户,希望能说详细点!

谢谢
...全文
301 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
dfmo 2008-04-18
  • 打赏
  • 举报
回复
donydat 2007-04-15
  • 打赏
  • 举报
回复
谢谢,散分了!!
懒得去死 2007-04-13
  • 打赏
  • 举报
回复
grant all privileges on depot_development.* to 'dave'@'localhost';
forestandriver23 2007-04-12
  • 打赏
  • 举报
回复
你这个情况是数据库里没有这个用户。
添加用户,同时分配权限:
grant all on depot_development.* to 'dave'@'localhost' identified by 'password';
其中password为该用户的密码
heibai52094 2007-04-11
  • 打赏
  • 举报
回复
专业的搜索引擎技术提供商(磐志搜索),访问www.panzhi.net了解详细介绍。

第一,提高搜索速度,0.005秒;
第二、提高搜索准确性,专业的中文分词;
第三,智能分析关键词,纠错,相关词提取等;
第四、方法搜索 关键词的关系(与 或 非)等;
yangxiao_jiang 2007-04-11
  • 打赏
  • 举报
回复
给mysql.user表的INSERT权限

GRANT INSERT(user) ON mysql.user TO 'user_name'@'host_name';

56,677

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧