Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Propel reverse engineer mysql database

Tags:

php

mysql

propel

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?

like image 391
coder Avatar asked Mar 09 '26 00:03

coder


1 Answers

Change this:

propel.database.url = localhost:dbname=test

to this

propel.database.url = mysql:host=localhost;dbname=test

like image 87
Jordi Avatar answered Mar 10 '26 13:03

Jordi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!