Why is GRANT not working in MySQL?

后端 未结 4 1195
伪装坚强ぢ
伪装坚强ぢ 2020-12-13 05:58

I\'m scratching my head on this one as I see a ton of helper websites showing how to create MySQL users and grant privileges but for some reason it just does not work for me

4条回答
  •  醉酒成梦
    2020-12-13 06:22

    This should work:

    GRANT ALL PRIVILEGES ON database_name.* TO 'username'@'localhost';
    

提交回复
热议问题