Home >Backend Development >PHP Tutorial >异常代码:2003 can't connect to MySQL server on '*'(10061)

异常代码:2003 can't connect to MySQL server on '*'(10061)

WBOY
WBOYOriginal
2016-06-13 10:50:46916browse

错误代码:2003 can't connect to MySQL server on '*.*.*.*'(10061)
本地连接mysql数据库,没有任何问题,远程连接就会报错

错误代码:2003 can't connect to MySQL server on '*.*.*.*'(10061)

怎么回事?


服务器用的是win2003 server版,防火墙已经添加3306端口例外,还会有什么原因呢?

------解决方案--------------------
搜索"mysql 添加用户“
grant all on *.* to [email protected] identified by '123';

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