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

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

WBOY
Release: 2016-06-13 12:23:15
Original
922 people have browsed it

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


代码页面:


------解决思路----------------------
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