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

thinkphp连接数据库报错

WBOY
Release: 2016-06-23 13:30:11
Original
888 people have browsed it

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


代码页面:


回复讨论(解决方案)

php_network_getaddress说明你数据库的host name写错了。。看看是不是3309端口。localhost换成127.0.0.1试试

port是不是3306?

恩  已经弄好了  谢谢各位

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template