本文介绍了Mysql 本地主机!= 127.0.0.1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!
问题描述
怎么可能?和主要问题 - 如何从所有主机为 root 授予对所有数据库的所有权限?
How could it be? And main question - how to grant ALL privileges on ALL databases from ALL hosts for root?
UPD:
UPD2:
推荐答案
如您所见 此处,如果在没有主机名或主机名 localhost
的情况下使用,UNIX mysqld 将使用套接字.
As you can see here, a UNIX mysqld uses sockets if used without a host name or with the host name localhost
.
所以它有所作为,而在 GRANT 系统中,这种差异变得明显.
So it makes a difference, and in the GRANT system this difference becomes evident.
这篇关于Mysql 本地主机!= 127.0.0.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!
本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!