dimanche 17 avril 2011

Mysql and pdo

go to eassyphp\conf_files\my.ini
y ll find
#Path to the database root
datadir="${path}/mysql/data/"
this indicat were your databases files can be found

you can read this files by using notpad++
for each database y ll find a foldes with the sam name into y cn find yr tables data


------------------
What is PDO.

PDO is a PHP extension to formalise PHP's database connections by creating a uniform interface. This allows developers to create code which is portable across many databases and platforms.
MYSQL (http://www.mysql.com/): MySQL 3.x/4.0 and above support it

to  check the available drivers with the static method PDO::getAvailableDrivers().
run this script
<?php
foreach(PDO::getAvailableDrivers() as $driver)
    {
    echo $driver.'<br />';
    }
?>
if no mysql is displayed so go to php config file and delelte ; before
extension=php_pdo_mysql.dll
and retry

Aucun commentaire:

Enregistrer un commentaire