Home  >  Article  >  Database  >  mysql.user中host中的%示意什么意思_MySQL

mysql.user中host中的%示意什么意思_MySQL

WBOY
WBOYOriginal
2016-06-01 13:38:471630browse

bitsCN.com


mysql.user中host中的%示意什么意思

 

mysql的%虽然表示是任何主机,但是它只是针对于通过TCP/IP连接过来的主机。

类似于mysql -h 172.16.0.3这种。

 

另外还有两种: 

1、localhost 

2、127.0.0.1 

 

%不能替代上面两种,也就是说,你在本机用mysql -hlocalhost(等同于mysql 

不指定-h),mysql -h 127.0.0.1方式连接数据库,MySQL的权限验证模块都会采

用不同的方式。

 

bitsCN.com
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn