增值通信服务商数据库MySQLlocalhost

%和localhost的理解

create user 'backup'@'%' identified by '123456' ;

grant reload,lock tables,replication client,super on *.* to 'backup'@'%' ;

我执行show grants for  backup

查看有权限

但是查看localhost 就提示没有权限

show grants for backup@localhost  ;---提示没有该用户

请问%,不是代表所有的,任意的主机,

不包括:localhost吗?

参与4

1同行回答

drdb2drdb2系统工程师se
这是mysql被常问的问题% 不包括 localhost看看http://stackoverflow.com/questions/11634084/are-users-user-and-userlocalhost-not-the-same显示全部
互联网服务 · 2016-01-12
浏览1252

提问者

beijing_2011
安全审计师北京华为

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2016-01-11
  • 关注会员:3 人
  • 问题浏览:2332
  • 最近回答:2016-01-12
  • X社区推广