mysql5.5中 host的值为::1

在mysql5.5版本中mysql库的user表中初始就有这样几条记录:

 

mysql> use mysql;
mysql> SELECT * FROM `user` LIMIT 0 , 30;

Host User Password
localhost root
127.0.0.1 root
::1 root

 

----------------------

其中::1同样是ipv6中localhost的表示

其中::1就是兼容支持ipv6的,表示同ipv4的127.0.0.1一样表示的localhost

转载于:https://www.cnblogs.com/dami520/archive/2012/08/06/2625774.html

你可能感兴趣的:(mysql5.5中 host的值为::1)