修改文件C:\Windows\System32\drivers\etc\hosts添加127.0.0.1 localhost在我的文件中这入口也是0.0.0.0 localhost:所以导致了这个问题,具体问什么会导致就不太清楚了参考:http://stackoverflow.com/questions/16580370/mysql-error-2005-unknown-mysql-server-host-localhost11001
调试欢乐多
我的hosts文件如下:
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
hosts 文件没问题好像,就是因为2个同时浏览器同时登录才出现的问题。
我的hosts文件如下:
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost