赞
踩
★ 两个错误信息:都可能是权限不够的原因,当然第二个问题也有可能是密码输错了。
在cmd控制台,选择某个用户shan,进入mysql服务:
输入命令:grant all on mysqldemo.t_student to shan@localhost;
■ 结果报错:ERROR 1142 (42000): SELECT, GRANT command denied to user 'shan'@'localhost' for table 't_student'
然后输入命令:`grant all on mysqldemo.t_student to shan@localhost identitied by '密码' with grant option;`
■ 结果报错:ERROR 1142 (42000): GRANT command denied to user 'shan'@'localhost' for table 't_student'
1、考虑是不是密码输错了---实在密码想不起来,那就重装一下mysql,mysql是没有找回密码的服务。
2、权限不够
看到错误信息“denied--不能” 可能是权限不够。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。