Home  >  Article  >  Backend Development  >  thinkphp连接数据库报错解决思路

thinkphp连接数据库报错解决思路

WBOY
WBOYOriginal
2016-06-13 12:23:15887browse

thinkphp连接数据库报错
急 !  连接数据库报错  请大神们指教


代码页面:


------解决思路----------------------
php_network_getaddress说明你数据库的host name写错了。。看看是不是3309端口。localhost换成127.0.0.1试试
------解决思路----------------------
port是不是3306?

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