The supplied parameters to Zend_Auth_Adapter_DbTable failed to produce a valid sql statement

前端 未结 7 2218
终归单人心
终归单人心 2021-01-25 01:53

I have the following exception Caught exception: The supplied parameters to Zend_Auth_Adapter_DbTable failed to produce a valid sql statement, please check table and colum

7条回答
  •  有刺的猬
    2021-01-25 02:51

    Make sure you unicode 'utf-8' settings match what your MySQL Server is expecting.

    In other words, don't set the charset as 'utf-8' in your application.ini file if your server is not configured for that ( as is the default ). A...

    SET NAMES 'utf8'
    

    is sent to MySQL from ZF which causes the error.

    Removing the 'utf-8' charset in the application.ini solved this for me.

提交回复
热议问题