首页上一页 1 下一页尾页 3 条记录 1/1页
PHP mySQL 问题!!
发表在PHP图书答疑
2011-02-26
是否精华
是
否
版块置顶:
是
否
《PHP从入门到精通》的最后一章 应用smarty模板开发电子商务网站, 那个实例我无法正确打开
打开index后,导航部分正常, 下面就显示:
Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'root'@'localhost' (using password: YES) in D:\WorkStudy\EasyPHP-5.3.4.0\www\27\adodb5\drivers\adodb-mysql.inc.php on line 381
Call Stack
# Time Memory Function Location
1 0.0015 345328 {main}( ) ..\index.php:0
2 0.0210 750856 include_once( 'D:\WorkStudy\EasyPHP-5.3.4.0\www\27\public.php' ) ..\index.php:22
3 0.0218 755624 include_once( 'D:\WorkStudy\EasyPHP-5.3.4.0\www\27\conn\conn.php' ) ..\public.php:2
4 0.0432 2594936 ADOConnection->PConnect( $argHostname = 'localhost', $argUsername = 'root', $argPassword = 'root', $argDatabaseName = 'db_shop' ) ..\conn.php:5
5 0.0432 2594968 ADODB_mysql->_pconnect( $argHostname = 'localhost', $argUsername = 'root', $argPassword = 'root', $argDatabasename = 'db_shop' ) ..\adodb.inc.php:484
6 0.0432 2595000 mysql_pconnect ( 'localhost', 'root', 'root', 0 ) ..\adodb-mysql.inc.php:381
Dump $_SERVER
$_SERVER['REMOTE_ADDR'] =
string '127.0.0.1' (length=9)
$_SERVER['REQUEST_METHOD'] =
string 'GET' (length=3)
$_SERVER['REQUEST_URI'] =
string '/27/' (length=4)
Variables in local scope (#5)
$argDatabasename =
string 'db_shop' (length=7)
$argHostname =
string 'localhost' (length=9)
$argPassword =
string 'root' (length=4)
$argUsername =
string 'root' (length=4)
光盘中那个《程序使用说明书》里的步骤都已经做了,现在这个情况要如何解决?
打开index后,导航部分正常, 下面就显示:
Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'root'@'localhost' (using password: YES) in D:\WorkStudy\EasyPHP-5.3.4.0\www\27\adodb5\drivers\adodb-mysql.inc.php on line 381
Call Stack
# Time Memory Function Location
1 0.0015 345328 {main}( ) ..\index.php:0
2 0.0210 750856 include_once( 'D:\WorkStudy\EasyPHP-5.3.4.0\www\27\public.php' ) ..\index.php:22
3 0.0218 755624 include_once( 'D:\WorkStudy\EasyPHP-5.3.4.0\www\27\conn\conn.php' ) ..\public.php:2
4 0.0432 2594936 ADOConnection->PConnect( $argHostname = 'localhost', $argUsername = 'root', $argPassword = 'root', $argDatabaseName = 'db_shop' ) ..\conn.php:5
5 0.0432 2594968 ADODB_mysql->_pconnect( $argHostname = 'localhost', $argUsername = 'root', $argPassword = 'root', $argDatabasename = 'db_shop' ) ..\adodb.inc.php:484
6 0.0432 2595000 mysql_pconnect ( 'localhost', 'root', 'root', 0 ) ..\adodb-mysql.inc.php:381
Dump $_SERVER
$_SERVER['REMOTE_ADDR'] =
string '127.0.0.1' (length=9)
$_SERVER['REQUEST_METHOD'] =
string 'GET' (length=3)
$_SERVER['REQUEST_URI'] =
string '/27/' (length=4)
Variables in local scope (#5)
$argDatabasename =
string 'db_shop' (length=7)
$argHostname =
string 'localhost' (length=9)
$argPassword =
string 'root' (length=4)
$argUsername =
string 'root' (length=4)
光盘中那个《程序使用说明书》里的步骤都已经做了,现在这个情况要如何解决?