php - Propel: No connection available for myproject database -
i'm getting error while doing
$ ./propel model:build --verbose processing: schema.xml 1 tables processed 1 tables found in 1 schema files. generating php files... datamodel: ./schema.xml - database: myproject + table: resource -> (unchanged) /base/resource.php -> (unchanged) /map/resourcetablemap.php -> (unchanged) /base/resourcequery.php -> (exists) resource.php -> (exists) resourcequery.php (no change) object model generation finish - files date $ ./propel sql:build --verbose processing: schema.xml 1 tables processed 1 tables found in 1 schema files. $ ./propel sql:insert --verbose no connection available myproject database $ the output is:
no connection available myproject database
here 3 files of interest:
build.properties
runtime-conf.xml
schema.xml
what missing?
thank you.
you might missing these in build.properties:
propel.runtime.conf.file = runtime-conf.xml propel.buildtime.conf.file = buildtime-conf.xml you buildtime-conf.xml similar runtime-conf.xml, can duplicate, rename , see if works.
php propel
No comments:
Post a Comment