setCredentialTreatment 在 SQLite 中不可用
我遇到了一个奇怪的错误,我想与你分享。
我必须将 MySQL 数据库转换为 SQLite,使用 DBConvert 程序实际上是小菜一碟。
所以我改变了我的application.ini:
resources.db.adapter = "PDO_SQLITE"
resources.db.params.dbname = APPLICATION_PATH "/../data/db/db_name.db"
并尝试显示我的网站,一切看起来都是正确的。除非我尝试登录我的网站,否则出现以下错误: 向 Zend_Auth_Adapter_DbTable 提供的参数未能生成有效的 sql 语句,请检查表和列名称的有效性。
I ran into a strange error, I want to share it with you.
I had to convert my MySQL database to SQLite, which was actually a piece of cake with the program called DBConvert.
So I changed in my application.ini:
resources.db.adapter = "PDO_SQLITE"
resources.db.params.dbname = APPLICATION_PATH "/../data/db/db_name.db"
And try to show my website, everything looks correct. Except when I try to login to my website, it gives the following error:
The supplied parameters to Zend_Auth_Adapter_DbTable failed to produce a valid sql statement, please check table and column names for validity.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SQLite 不支持
setCredentialTreatment(SHA(?))
。删除 setCredentialTreatment 行,并更改以下内容:
setCredentialTreatment(SHA(?))
is not supported by SQLite.Remove that setCredentialTreatment line, and change the following: