User can't access a database

后端 未结 7 2275
太阳男子
太阳男子 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:15

    I have run into the same problem in the past. Have you tried the following?

    GRANT ALL ON `db1`.* TO 'myuser'@'%' IDENTIFIED BY PASSWORD '*7733323232...';
    GRANT ALL ON `db2`.* TO 'myuser'@'%' IDENTIFIED BY PASSWORD '*7733323232...';
    FLUSH PRIVILEGES;
    
    0 讨论(0)
提交回复
热议问题