To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Tools > Zend Studio

Zend Studio Looking for help with Zend Studio? This is the place.

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-30-2008, 10:55 PM   #1
helen.L
Junior Member
 
Join Date: Jun 2008
Posts: 1
Question Zend Studio install...

Hi...

OK...I'm having difficulty understanding a problem with installing
Zend Studio 5.5 on an Intel Mac.

Prior to the install, I had the zend /library installed, and was able
to successfully run Zend_Db commands against a local mysql server
(5.1) from the commandline (e.g. php testdb.php). This stuff ran just
fine. The code is simply:

PHP Code:
<?php
ini_set
('include_path',ini_get('include_path').'.: /Users/joet/Zend/
ZendStudio-5.5.0/bin/ZendFramework/library/'
);

require_once
'Zend.php';
require_once
'Zend/Db.php';

$config = array(
'host' ='localhost',
'username' ='test',
'password' ='test',
'dbname' ='test',);
$db = Zend_Db::factory('PDO_MYSQL', $config);
print_r($db->fetchAll("SELECT * FROM testdata"));

?>
Now, if I run the exact same code from Zend Studio, I get the message:

<b>Fatal error</b>: Uncaught exception 'Zend_Db_Adapter_Exception'
with message 'The mysql driver is not currently installed' in /Users/
joet/Zend/ZendStudio-5.5.0/bin/ZendFramework/library/Zend/Db/Adapter/
Pdo/Abstract.php:80

I am assuming that there is some setup issue that is causing Zend
Studio to work incorrectly.

Can anyone shed some light on where I might look to resolve the issue?

Thanks
helen.L is offline   Reply With Quote
Old 07-02-2008, 11:43 PM   #2
mmilano
coder
 
Join Date: Mar 2002
Location: CA, USA
Posts: 314
apparently apple failed to include the mysql pdo extension in their build. the only pdo drivers they include are for sqlite and sqlite2. check out your phpinfo();

enabling the pdo extensions in php.ini doesn't help. i think you (and i) need a new php build to support it. i haven't built php on this mac yet, but i guess i will be soon here.

post back if you make any progress.
mmilano is offline   Reply With Quote
Old 07-03-2008, 12:24 AM   #3
mmilano
coder
 
Join Date: Mar 2002
Location: CA, USA
Posts: 314
here's a great guide to re-build PHP: http://www.malisphoto.com/tips/php-on-os-x.html

i just used it and verified pdo mysql is working (along with GD!)
mmilano is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 09:51 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.