Re: Connecting to MySQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 14, 2011 at 2:15 PM, Cristiano Di Buduo
<cristiano_di_buduo@xxxxxxxxxxx> wrote:
>
> I just downloaded both PHP and MySQL, both newest stable versions, both are working well, but when i try{} to :
>
>     $dbh = new PDO('mysql:host=localhost;dbname=test', "user", "passwd");
>
> i catch{} a "could not find driver" error.
>
> Any help with this?
>
> I think the proper modules were set up in the php.ini by default.
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Check the php.ini or run <?php phpinfo(); ?> to see if the PDO is enabled

-- 

Bastien

Cat, the other other white meat

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux