To make sure about this create a php file (lets call it php_info.php)that only contains:
<?php phpinfo(); ?> Then run it on command line as: php php_info.php | grep PDO If you do have command line PHP enabled you should see: php php_info.php | grep PDO PDO PDO support => enabled PDO drivers => mysql PDO Driver for MySQL, client library version => 5.0.75 Hope that helps you verify, because that error message only happens if PDO support on command line php is not enabled On Wed, Oct 14, 2009 at 2:59 PM, cosmy <[email protected]> wrote: > > they are enabled and i use the same php.ini > > On 14 Ott, 14:32, Gábor Fási <[email protected]> wrote: > > The command line php uses a different php.ini, locate it, and enable > > both the pdo and the pdo_mysql extensions. > > > > > > > > On Wed, Oct 14, 2009 at 14:16, cosmy <[email protected]> wrote: > > > > > Hi all, > > > I have a problem with console scripts. > > > When i try to make doctrine:insert-sql from my console (i'm under > > > macosx) i receive this error: > > > Couldn't locate driver named mysql > > > > > ..And of course it's a matter also if i try to load data or build all. > > > I could insert by myself the sql, but i want to make it work with the > > > command line. > > > > > I've tried exporting the correct path of the php executable, and it's > > > the same of the apache one.. but it still doesn't work. > > > > > Thank you in advance > > > -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
