Reputation: 1314
Going by the instructions here: http://www.propelorm.org/wiki/Documentation/1.5/Existing-Database
I've created a folder and placed a file "build.properties" with the contents:
propel.project = test
# The Propel driver to use for generating SQL, etc.
propel.database = mysql
# This must be a PDO DSN
propel.database.url = localhost:dbname=test
propel.database.user = root
propel.database.password = root
In the cmd I type propel-gen reverse
And the error message i get: There was an error building XML from metadata: could not find driver
After hours of searching i feel i've tried every config. I've enabled the drivers in the php.ini file:
extension=php_mysql.dll
extension=php_pdo_mysql.dll
I'm using Zend Server
any ideas?
Upvotes: 3
Views: 2661
Reputation: 3673
Change this:
propel.database.url = localhost:dbname=test
to this
propel.database.url = mysql:host=localhost;dbname=test
Upvotes: 7
Reputation: 8639
Note Entered as answer since comments don't let me format code nicely
I don't think this is propel related; something is wrong with the PDO driver installation.
Assuming the following generates an exception, can you post the output (edit into question)?
<?php
$dbh = new PDO('mysql:host=localhost;dbname=test', 'root', 'root');
?>
Upvotes: 0