Author Topic: DB Error  (Read 4238 times)

Offline mark_ccom

  • Newbie
  • *
  • Posts: 6
DB Error
« on: August 07, 2006, 06:38:06 AM »
Hi, Im running PHP Version 4.3.4 --with-mysql

I have configured the 2 config files are detailed and have double checked the mySQL details.

The mySQL user is 'round' and has permissions to access the 'roundcubemail' database, I have also run the initial SQL file using a shell.

I am receivign the error shown below:

DB Error in /www/mark/htdocs/mymail/program/include/rcube_db.inc (97): DB Error: extension not found

Fatal error: Call to undefined function: query() in /www/mark/htdocs/mymail/program/include/rcube_db.inc on line 213


I have made a script to test the DB connection:

require_once 'DB.php';

$db =& DB::connect('mysql://round:pass@localhost/roundcubemail');
if (PEAR::isError($db)) {

  echo 'Msg: ' . $db->getMessage() . "\n";
echo '
';
  echo 'Code: ' . $db->getCode() . "\n";
echo '
';
  echo 'DBMS/User Msg: ' . $db->getUserInfo() . "\n";
echo '
';
  echo 'Debug: ' . $db->getDebugInfo() . "\n";
  exit;
}
?>



This gives the error:


Msg: DB Error: extension not found
Code: -25
User Msg: mysql://round:pass@localhost/roundcubemail
Debug: mysql://round:pass@localhost/roundcubemail


Im not a PHP guy, and am at a loss, any help would be great.

Regards,

Mark

Offline mark_ccom

  • Newbie
  • *
  • Posts: 6
Re: DB Error
« Reply #1 on: August 07, 2006, 06:47:22 AM »
I have just installed the new beta 2 and am receiving the following message:

DB Error in /www/mark/htdocs/roundcubemail/program/include/rcube_db.inc (105): DB Error: extension not found

Warning: session_start(): Cannot send session cookie - headers already sent in /www/mark/htdocs/roundcubemail/program/include/main.inc on line 89

Warning: session_start(): Cannot send session cache limiter - headers already sent in /www/mark/htdocs/roundcubemail/program/include/main.inc on line 89

Warning: Cannot modify header information - headers already sent in /www/mark/htdocs/roundcubemail/program/include/main.inc on line 97

Warning: Cannot modify header information - headers already sent in /www/mark/htdocs/roundcubemail/program/include/rcube_shared.inc on line 132
SERVICE CURRENTLY NOT AVAILABLE!
DB Error: extension not found

Offline yllar

  • Full Member
  • ***
  • Posts: 106
Re: DB Error
« Reply #2 on: August 07, 2006, 07:29:35 AM »
DB Error: extension not found <- your php doesn't have mysql module installed
irc://irc.freenode.net:6667/#roundcube

Offline mark_ccom

  • Newbie
  • *
  • Posts: 6
Re: DB Error
« Reply #3 on: August 07, 2006, 07:45:21 AM »
just discovered that, thank you, do you know where i can get the software?

Im running PHP 4.3.4
MySQL 4.0.18