Hi
I am having problem activating PDO in PHP, I have recompiled with easyapache and it is loaded in php
But when I try to connect to database it gives me error: could not find driver
this is the script:
<?php
$hostname = "localhost";
$username = "example";
$password = "password";
try {
$db = new PDO("mysql:host=$hostname;dbname=ibaza", $username, $password);
echo "Connected to database";
}
catch(PDOException $e) {
echo $e->getMessage();
}
?>
I have recently updated MySQL to 5.6 and not sure why this happens. PDO is not working?
can you maybe help me?
I am having problem activating PDO in PHP, I have recompiled with easyapache and it is loaded in php
But when I try to connect to database it gives me error: could not find driver
this is the script:
<?php
$hostname = "localhost";
$username = "example";
$password = "password";
try {
$db = new PDO("mysql:host=$hostname;dbname=ibaza", $username, $password);
echo "Connected to database";
}
catch(PDOException $e) {
echo $e->getMessage();
}
?>
I have recently updated MySQL to 5.6 and not sure why this happens. PDO is not working?
can you maybe help me?
Last edited by a moderator: