Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-29-2007, 02:13 PM
Junior Member
 
Join Date: Sep 2007
Posts: 1
Default Mysql driver install

Just getting into the framework ...or trying to

Tried this

require_once 'Zend/Db.php';
$db = Zend_Db::factory('Pdo_Mysql', array(
'host' => '127.0.0.1',
'username' => 'webuser',
'password' => 'xxxxxxxx',
'dbname' => 'test'
));
$resources = $db->fetchAll( $db->select()->distinct()->from( 'test', array( 'id' ) ) );

and got this
Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The mysql driver is not currently installed'

I have seen a couple of threads on something but the responses were never definative.
I'm using the lastest versions of php , apachet etc


best wishes ed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-06-2007, 10:22 AM
Junior Member
 
Join Date: Oct 2007
Posts: 1
Default

Take a look at your php.ini file.
You have to set these extensions (remove ; in front of these two lines or add them):
Code:
extension=php_pdo.dll
extension=php_pdo_mysql.dll
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-16-2007, 04:38 PM
Junior Member
 
Join Date: Oct 2007
Posts: 4
Default

I'm trying to do the same thing and receive the same error message. I check php.ini - there is OK.
what else can be, who knows?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-16-2007, 05:26 PM
Junior Member
 
Join Date: Oct 2007
Posts: 4
Default

does pdo_mysql supports mysql 5?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-16-2007, 05:30 PM
Junior Member
 
Join Date: Oct 2007
Posts: 4
Default

hm, I was using Zend DE to run my application when I reveive error mesage. when I run application from browser everything seems to work good. what happens?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 10-17-2007, 08:55 AM
Junior Member
 
Join Date: Sep 2007
Posts: 10
Default

Zend Studio uses his own internal server for debuging and running applications.

Adrian
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-17-2007, 10:54 AM
Junior Member
 
Join Date: Oct 2007
Posts: 4
Default

Quote:
Originally Posted by ApAdrian View Post
Zend Studio uses his own internal server for debuging and running applications.

Adrian
I've already understood this. strange, but in Zend's php pdo.dll and pdo_mysql.dll are present in ext dir and in php.ini, but still won't work.
does somebody use internal debugger of zend studio with mysql pdo driver? tell me please what I must do?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-04-2007, 09:38 PM
Junior Member
 
Join Date: Nov 2007
Posts: 1
Question The mysql driver is not currently installed

I'm getting the same error-msg. From my point of view php.ini is right:

Code:
extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
I'm using the actual Zend 1.0.2 with
Apache 2.2.6
PHP 5.2.4
MySQL 5.0.

When I try to connect to the MySQL-DB I get the following error msg:

Quote:
Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The mysql driver is not currently installed' in /srv/www/vhosts/web/httpdocs/library/Zend/Db/Adapter/Pdo/Abstract.php:104 Stack trace: #0 /srv/www/vhosts/web/httpdocs/library/Zend/Db/Adapter/Abstract.php(263): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /srv/www/vhosts/web/httpdocs/library/Zend/Db/Adapter/Pdo/Abstract.php(206): Zend_Db_Adapter_Abstract->query('DESCRIBE `t_use...', Array) #2 /srv/www/vhosts/web/httpdocs/library/Zend/Db/Adapter/Pdo/Mysql.php(138): Zend_Db_Adapter_Pdo_Abstract->query('DESCRIBE `t_use...') #3 /srv/www/vhosts/web/httpdocs/library/Zend/Db/Table/Abstract.php(595): Zend_Db_Adapter_Pdo_Mysql->describeTable('t_user', NULL) #4 /srv/www/vhosts/web/httpdocs/library/Zend/Db/Table/Abstract.php(528): Zend_Db_Table_Abstract->_setupMetadata() #5 /srv/www/vhosts/web/httpdocs/library/Zend/Db/Table/Abstract.php(264): Zend_Db_Table_Abstract->_setup() #6 /srv/www/vhosts/web in /srv/www/vhosts/web/httpdocs/library/Zend/Db/Adapter/Pdo/Abstract.php on line 104
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 11-07-2007, 09:04 AM
Junior Member
 
Join Date: Nov 2007
Posts: 3
Default

extension=php_mysql.dll
extension=php_pdo.dll
extension=php_pdo_mysql.dll


I had this exception when I comment

extension=php_mysql.dll
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:07 PM.