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

前端 未结 4 1973
长发绾君心
长发绾君心 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

    Even if they would mean the same, or if one would include the other, they ARE indeed separate users!

    13.7.1.3. GRANT Syntax

    MySQL and Standard SQL Versions of GRANT

    The biggest differences between the MySQL and standard SQL versions of GRANT are:

    • MySQL associates privileges with the combination of a host name and user name and not with only a user name.

提交回复
热议问题