pjc2003 Posted February 28, 2007 Share Posted February 28, 2007 hey im building a website using the pear dataobject factory and im trying to get my admin area working but its comming up with the following error: I have replaced my username and password for database for security reasons... dataobjects_classes: find: dataobjects_classes: CONNECT: Checking for database database_ in options dataobjects_classes: CONNECT: NEW CONNECTION dataobjects_classes: CONNECT: mysql://username:xxxxxx@localhost/username 9f43fb47a730f4d0c5fd0d75c05b2c31 dataobjects_classes: CONNECT: a:1:{s:32:"9f43fb47a730f4d0c5fd0d75c05b2c31";O:8:"db_error":8:{s:20:"error_message_prefix";s:0:"";s:4:"mode";i:1;s:5:"level";i:1024;s:4:"code";i:-4;s:7:"message";s:19:"DB Error: not found";s:8:"userinfo";s:90:"Unable to include the DB/mysql.php file for 'mysql://username:xxxxxx@localhost/username'";s:9:"backtrace";a:7:{i:0;a:6:{s:4:"file";s:45:"/usr/home/username/public_html/fyp/DB/DB.php";s:4:"line";i:966;s:8:"function";s:10:"pear_error";s:5:"class";s:8:"db_error";s:4:"type";s:2:"->";s:4:"args";a:5:{i:0;s:19:"DB Error: not found";i:1;i:-4;i:2;i:1;i:3;i:1024;i:4;s:90:"Unable to include the DB/mysql.php file for 'mysql://username:xxxxxx@localhost/username'";}}i:1;a:6:{s:4:"file";s:27:"/usr/local/lib/php/PEAR.php";s:4:"line";i:563;s:8:"function";s:8:"db_error";s:5:"class";s:8:"db_error";s:4:"type";s:2:"->";s:4:"args";a:4:{i:0;i:-4;i:1;i:1;i:2;i:1024;i:3;s:90:"Unable to include the DB/mysql.php file for 'mysql://username:xxxxxx@localhost/username'";}}i:2;a:6:{s:4:"file";s:45:"/usr/home/username/public_html/fyp/DB/DB.php";s:4:"line";i:543;s:8:"function";s:10:"raiseerror";s:5:"class";s:4:"pear";s:4:"type";s:2:"::";s:4:"args";a:7:{i:0;N;i:1;i:-4;i:2;N;i:3;N;i:4;s:90:"Unable to include the DB/mysql.php file for 'mysql://username:xxxxxx@localhost/username'";i:5;s:8:"DB_Error";i:6;b:1;}}i:3;a:6:{s:4:"file";s:53:"/usr/home/username/public_html/fyp/DB/DataObject.php";s:4:"line";i:2223;s:8:"function";s:7:"connect";s:5:"class";s:2:"db";s:4:"type";s:2:"::";s:4:"args";a:1:{i:0;s:44:"mysql://username:xxxxxx@localhost/username";}}i:4;a:6:{s:4:"file";s:53:"/usr/home/username/public_html/fyp/DB/DataObject.php";s:4:"line";i:1870;s:8:"function";s:8:"_connect";s:5:"class";s:19:"dataobjects_classes";s:4:"type";s:2:"->";s:4:"args";a:0:{}}i:5;a:6:{s:4:"file";s:53:"/usr/home/username/public_html/fyp/DB/DataObject.php";s:4:"line";i:411;s:8:"function";s:5:"table";s:5:"class";s:19:"dataobjects_classes";s:4:"type";s:2:"->";s:4:"args";a:0:{}}i:6;a:6:{s:4:"file";s:53:"/usr/home/username/public_html/fyp/admin/product.php";s:4:"line";i:111;s:8:"function";s:4:"find";s:5:"class";s:19:"dataobjects_classes";s:4:"type";s:2:"->";s:4:"args";a:0:{}}}s:8:"callback";N;}} dataobjects_classes: CONNECT FAILED: [db_error: message=DB Error: not found" code=-4 mode=return level=notice prefix="" info="Unable to include the DB/mysql.php file for 'mysql://username:xxxxxx@localhost/username'] dataobjects_classes: ERROR: Connect failed, turn on debugging to 5 see why Warning: raiseerror(DB/DataObject/Error.php) [function.raiseerror]: failed to open stream: No such file or directory in /usr/home/username/public_html/fyp/DB/DataObject.php on line 4007 Fatal error: raiseerror() [function.require]: Failed opening required 'DB/DataObject/Error.php' (include_path='.:/usr/local/lib/php') in /usr/home/username/public_html/fyp/DB/DataObject.php on line 4007 Ive been told it has something to do with the location of the files in the folders but im sure I have put everything in the right place! ive double checked all day and still getting this cheers people. Jeff. Link to comment https://forums.phpfreaks.com/topic/40578-solved-php-mysql-connection-problem/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.