Propel 逆向工程 mysql 数据库
按照此处的说明进行操作: http://www.propelorm.org/wiki/Documentation /1.5/Existing-Database
我创建了一个文件夹,并放置了一个文件“build.properties”,其内容为:
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
在 cmd 中,我输入 propel-gen reverse
我得到的错误消息:从元数据构建 XML 时出现错误:找不到驱动程序
经过几个小时的搜索,我觉得我已经尝试了所有配置。我已经在 php.ini 文件中启用了驱动程序:
extension=php_mysql.dll
extension=php_pdo_mysql.dll
我正在使用 Zend Server
有什么想法吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
改变这个:
对此
propel.database.url = mysql:host=localhost;dbname=test
Change this:
to this
propel.database.url = mysql:host=localhost;dbname=test
注意 作为答案输入,因为注释不允许我很好地格式化代码
我不认为这与推进相关; PDO 驱动程序安装有问题。
假设以下生成异常,您可以发布输出(编辑成问题)吗?
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)?