Home > Backend Development > PHP Tutorial > 下载的php网站怎么在本机里调试

下载的php网站怎么在本机里调试

WBOY
Release: 2016-06-13 11:57:37
Original
1124 people have browsed it

下载的php网站如何在本机里调试?
下载的php网站如何在本机里调试?

我已经在本机里安装好了phpstudy,网站后台数据库也导入了mysql里,php网站,我放在一个目录(text)里,而后把这个text目录放在www目录里了,而后正确启动了phpstudy,启动浏览器输入“http://localhost/text/index.php” ,无法正确载入啊 ,显示为:
//-----------------------------------------------------------------------------------------------------------------
A Database Error Occurred

Unable to connect to your database server using the provided settings.

Filename: D:\phpStudy\WWW\hxkj\system\database\DB_driver.php

Line Number: 124

//-------------------------------------------------------------------------------------------------------------------------

另外调试php代码,用啥开发工具好?求推荐! 

------解决方案--------------------
提示已经写明了,不能连接数据库,你没有安装数据库吗?
------解决方案--------------------
是的,PHP环境没问题,你需要重新配置数据库连接才可以

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