Help - Search - Members - Calendar
Full Version: Support For Mysql Pdo (php Data Objects)
Zymic Webmaster Forums > Zymic Free Web Hosting > Databases & MySQL
EssenceOfStupid
I recently wrote a script and I am attempting to connect to a database using PDO. It seems that I can't connect, as I'm getting a database error:

"could not find driver"

I'm guessing that the PDO Driver isn't available. Is it possible to get it enabled, or is there any type of work around? Any information would be appreciated. I've searched the forums and it seems as if PDO was enabled in 2008, but I can't find any posts regarding it.

Here's some of my PHP code, with all the sensitive information edited out, for reference:

CODE

try{
$hostname = 'localhost';
$username = 'asdf'; //
$password = 'fdsa';
$dbname = "test"
$dbh = new PDO("mysql:host=$hostname;dbname=$dbnamehere", $username, $password);

$sql = "SELECT * FROM warmap";

}
catch(PDOException $e) {
echo $e->getMessage(); // this is where the error message is thrown.
}




sbu
PHP 5.3 and mysqlnd (?)
You need the IP (!) of the Mysql-host.
...I'm searching for my host-IP since half an hour... smile.gif
EssenceOfStupid
QUOTE(sbu @ Nov 3 2009, 08:37 PM) *
PHP 5.3 and mysqlnd (?)
You need the IP (!) of the Mysql-host.
...I'm searching for my host-IP since half an hour... smile.gif


The host IP is just localhost


Any admins have any information about PDO? It would be greatly appreciated.

Thanks.
Ed
PDO MySQL won't make any appearance soon due to technical requirements.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.