十九画生人 2022-04-05 17:28 采纳率: 33.3%
浏览 28
已结题

铁汁们 我这句语句有错吗,为什么mysql报我语法错误

//这是给权限
grant select on test.emp3 to 'u_wuyanzu' @'localhost' identified by '1234';

//这是报错
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'identified by '1234'' at line 1

  • 写回答

2条回答 默认 最新

  • 关注

    identified by '1234'是修改密码的意思,修改:

    grant select on test.emp3 to 'u_wuyanzu' @ '%'
    
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 4月13日
  • 已采纳回答 4月5日
  • 创建了问题 4月5日