User can't access a database

后端 未结 7 2337
太阳男子
太阳男子 2020-12-29 10:30

In my PHP script, I\'m accessing two databases db1 and db2. I have a user myuser@localhost that can access db1 but can\'

7条回答
  •  醉酒成梦
    2020-12-29 11:01

    If you haven't done that already, you need to run flush privileges so that mysql knows there was a change and reloads the privileges table for users:

    FLUSH PRIVILEGES;
    

提交回复
热议问题