Home >Backend Development >PHP Tutorial >thinkphp连接数据库报错

thinkphp连接数据库报错

WBOY
WBOYOriginal
2016-06-23 13:30:11891browse

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


代码页面:


回复讨论(解决方案)

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