Jump to content

php mysql connection problem - using pear dataobject factory


pjc2003

Recommended Posts

hey im building a website using the pear dataobject factory and im having a problem connecting to my database.. Im getting the following error when i go to my admin area..

 

 

dataobjects_classes: find:

dataobjects_classes: CONNECT: Checking for database database_ in options

dataobjects_classes: CONNECT: NEW CONNECTION

dataobjects_classes: CONNECT: mysql://longnines:xxxxxx@localhost/longnines 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://longnines:xxxxxx@localhost/longnines'";s:9:"backtrace";a:7:{i:0;a:6:{s:4:"file";s:45:"/usr/home/longnines/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://longnines:xxxxxx@localhost/longnines'";}}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://longnines:xxxxxx@localhost/longnines'";}}i:2;a:6:{s:4:"file";s:45:"/usr/home/longnines/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://longnines:xxxxxx@localhost/longnines'";i:5;s:8:"DB_Error";i:6;b:1;}}i:3;a:6:{s:4:"file";s:53:"/usr/home/longnines/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://longnines:xxxxxx@localhost/longnines";}}i:4;a:6:{s:4:"file";s:53:"/usr/home/longnines/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/longnines/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/longnines/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://longnines:xxxxxx@localhost/longnines']

dataobjects_classes: ERROR: Connect failed, turn on debugging to 5 see why

DB_DataObject Error: Connect failed, turn on debugging to 5 see why

 

 

 

Any help would be great

 

Thanks,

 

Jeffrey.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.