PHPnow-1.5.5本地测试PHP程序,总是显示数据库链接失败
Notice:Undefinedvariable:s_typeinD:\PHPnow-1.5.5\Package\htdocs\jjw\index.phponline7N...
Notice: Undefined variable: s_type in D:\PHPnow-1.5.5\Package\htdocs\jjw\index.php on line 7
Notice: Undefined variable: s_type in D:\PHPnow-1.5.5\Package\htdocs\jjw\index.php on line 11
Notice: Undefined variable: s_type in D:\PHPnow-1.5.5\Package\htdocs\jjw\index.php on line 16
Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to MySQL server on 'localhost' (10061) in D:\PHPnow-1.5.5\Package\htdocs\jjw\include\c_mysql.inc.php on line 18
数据库连接失败!请稍候再试。
我是第一次用PHPnow-1.5.5,在电脑安装成功,数据库也能正常登陆。但是在把源码放在htdocs文件夹里,在IE地址栏里输入测试地址,却显示数据库链接失败。请问:数据库如何设置呢?
我的分用完了,请哪位朋友帮忙一下,以后赚分了一定还上!谢谢! 展开
Notice: Undefined variable: s_type in D:\PHPnow-1.5.5\Package\htdocs\jjw\index.php on line 11
Notice: Undefined variable: s_type in D:\PHPnow-1.5.5\Package\htdocs\jjw\index.php on line 16
Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to MySQL server on 'localhost' (10061) in D:\PHPnow-1.5.5\Package\htdocs\jjw\include\c_mysql.inc.php on line 18
数据库连接失败!请稍候再试。
我是第一次用PHPnow-1.5.5,在电脑安装成功,数据库也能正常登陆。但是在把源码放在htdocs文件夹里,在IE地址栏里输入测试地址,却显示数据库链接失败。请问:数据库如何设置呢?
我的分用完了,请哪位朋友帮忙一下,以后赚分了一定还上!谢谢! 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询