Results 1 to 15 of 15
Mar 1, 2013, 11:34 #1
- Join Date
- Mar 2013
- 0 Post(s)
- 0 Thread(s)
I can not connect to mySQL database
Hi, I apologize in advance for my English.
I bought the fifth edition of the Italian version of the book by Kevin Yank "Build Your Own Website Using PHP And MySQL Database".
I followed the guide in the appendix to manually install in Linux, I use Ubuntu 12.10, MySQL and PHP.
Understood to 4 explains how to connect to a database, created in advance, via PDO.
Shows the result of the following script:
$pdo = new PDO('mysql:host=localhost;dbname=ijdb', 'ijdbuser', 'mypassword');
$pdo->exec('SET NAMES "utf-8"');
catch (PDOException $e)
$output = 'Impossibile connettersi al server di database: ' .
$output = 'Connessione al database stabilita.';
Impossibile connettersi al server di database: could not find driver
How can I fix?