Are Users 'User'@'%' and 'User'@'localhost' not the same?

前端 未结 4 1975
长发绾君心
长发绾君心 2020-12-05 01:59

I created a user per the first command but cannot logon via localhost (linux). This link mysqldoc indicates that I need to create a second user by the same name, but usin

4条回答
  •  执念已碎
    2020-12-05 02:36

    User@% would allow access from all locations. User@localhost would only allow access from localhost. They are two different users with two different passwords (though you can set them to the same password, but if you update one password the other will not auto-update)

提交回复
热议问题