我经历了许多问题,但没有一个解决方案对我有效。希望有人有一些洞察力。
这是我的build.properties文件
propel.project = league
propel.database = mysql
propel.database.url = 'mysql:host=localhost;dbname=leaguerunner'
propel.database.user = root
propel.database.password = rootPropel版本是2.0.0-alpha2,PDO已安装并验证可以使用这些参数工作,PHP版本是5.4.4。
> propel reverse
Schema reverse engineering failed. You can use the --verbose option to get more information.
>propel reverse --verbose mysql:host=localhost;dbname=leaguerunner mysql:dbname=leaguerunner
Reading database structure...
There was an error building XML from metadata: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected
Schema reverse engineering failed.
>propel reverse --verbose mysql:host=localhost;dbname=leaguerunner
Reading database structure...
There was an error building XML from metadata: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected
Schema reverse engineering failed.发布于 2014-11-09 23:25:33
"propel reverse“适用于Propel 2.0,而build.properties适用于Propel 1.*。
您应该使用提供Propel2.0的配置可能性之一:http://propelorm.org/documentation/cookbook/working-with-existing-databases.html
在这里您可以看到btw版本的差异列表:
http://propelorm.org/documentation/whats-new.html
https://stackoverflow.com/questions/20536440
复制相似问题