User can't access a database

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

    Just thought I'd add an answer. I was trying this on ubuntu. Tried the grants, flushes, nothing worked (this is immediately after by apt-get install mysql-server). Just for grins I bounced the server, that worked and my new user can now login. I did:

    sudo service mysql restart
    

    I don't know what that worked, but it did.

提交回复
热议问题