Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
PDO Exception: could not find driver
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jose  
View profile  
 More options Oct 27 2012, 11:41 am
From: Jose <j...@wikislot.com>
Date: Sat, 27 Oct 2012 08:41:43 -0700 (PDT)
Local: Sat, Oct 27 2012 11:41 am
Subject: PDO Exception: could not find driver

Hi,

I'm trying to use doctrine, but I got the "PDO Exception: could not find
driver" error, both from command line (trying to generate the entities from
the database) or running in apache.

At first I though It was some problem with my config. I couldn't find
anything so I created a test to see what happens. If I run this over apache
or by command line it works perfectly:
<?php

$info = "mysql:dbname=collectorpedia;host=localhost";
$user = "....";
$pw = "....";
$test = new PDO($info, $user, $pw);

$result = $test->query("select reference from item limit 1000, 10");

foreach($result as $row)
{
    echo $row['reference']."\n";

}

But when I try to access the database with doctrine it doesn't. My config
file is as follows:
parameters.yml:
parameters:
    database_driver:   pdo_mysql
    database_host:     localhost
    database_port:     ~
    database_name:     collectorpedia
    database_user:     ....
    database_password: ....

config.yml
# Doctrine Configuration
doctrine:
    orm:
        auto_generate_proxy_classes: %kernel.debug%
        auto_mapping: true
    dbal:
        driver:   "%database_driver%"
        host:     "%database_host%"
        dbname:   "%database_name%"
        user:     "%database_user%"
        password: "%database_password%"

Any idea?

Thanks in advance

?>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jose C.  
View profile  
 More options Oct 27 2012, 5:51 pm
From: "Jose C." <j...@wikislot.com>
Date: Sat, 27 Oct 2012 23:50:58 +0200
Local: Sat, Oct 27 2012 5:50 pm
Subject: Re: [Symfony2] PDO Exception: could not find driver

I'been debugging this, the problems seems to come from the mopa bundle I
have installed. In the RemoteUpdateBundle there's a database.yml file:
doctrine:
    dbal:
        connections:
            mopa_remote_update:
                driver: pdo_sqlite
                path: %kernel.root_dir%/Resources/mopa_remote_update.sqlite

And this is the configuration that Doctrine is using, even when in the
config.yml I have the mysql parameters.

Any idea how to solve this? I don't quite understand the configuration
structure in this case.

Thanks in advance

2012/10/27 Jose <j...@wikislot.com>

--
__
Jose C.
j...@wikislot.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oleg K  
View profile  
 More options Oct 28 2012, 3:19 pm
From: Oleg K <getmequ...@gmail.com>
Date: Sun, 28 Oct 2012 12:19:52 -0700 (PDT)
Local: Sun, Oct 28 2012 3:19 pm
Subject: Re: PDO Exception: could not find driver

Check if you have "pdo_sqlite" installed as pdo drive
<?php
phpinfo();

суббота, 27 октября 2012 г., 20:41:43 UTC+5 пользователь Jose написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jose  
View profile  
 More options Oct 30 2012, 8:45 am
From: Jose <j...@wikislot.com>
Date: Tue, 30 Oct 2012 05:45:52 -0700 (PDT)
Local: Tues, Oct 30 2012 8:45 am
Subject: Re: PDO Exception: could not find driver

Yes, yes I have it. And it works.

That's not the problem, the problem is (and I don't know how to solve it)
is doctrine is using the sql_lite which is specified in the database.yml
file of RemoteUpdateBundle of Mopa.

Anyone has the twitter bootstrap bundle installed and had the same problem?

El domingo, 28 de octubre de 2012 20:19:52 UTC+1, Oleg K escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oleg K  
View profile   Translate to Translated (View Original)
 More options Oct 30 2012, 11:06 am
From: Oleg K <getmequ...@gmail.com>
Date: Tue, 30 Oct 2012 08:06:20 -0700 (PDT)
Local: Tues, Oct 30 2012 11:06 am
Subject: Re: PDO Exception: could not find driver

if you have access to apache error log, check that, that would clear the
situation
Also, what <?php print_r(PDO::getAvailableDrivers());?> shows?

суббота, 27 октября 2012 г., 20:41:43 UTC+5 пользователь Jose написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »