Php MySQL异常";PDOException对象([message:protected]=>;SQLSTATE[42000]”;

Php MySQL异常";PDOException对象([message:protected]=>;SQLSTATE[42000]”;,php,mysql,iis,Php,Mysql,Iis,我是PHP和MySQL的新手。我正在尝试安装http://sourceforge.net/projects/candidats/php软件。在安装过程中,当安装或将数据加载到数据库时,我发现以下错误。有人能帮我找到正确的方向吗 PDOException Object ( [message:protected] => SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in yo

我是PHP和MySQL的新手。我正在尝试安装
http://sourceforge.net/projects/candidats/
php软件。在安装过程中,当安装或将数据加载到数据库时,我发现以下错误。有人能帮我找到正确的方向吗

    PDOException Object ( [message:protected] => SQLSTATE[42000]: Syntax error or access violation: 
    1064 You have an error in your SQL syntax; check the manual that corresponds to your 
    MySQL server version for the right syntax to use near ‘IGNORE TABLE email_history ADD COLUMN for_module varchar(255) 
    default NULL’ at line 1 [string:Exception:private] => [code:protected] => 42000 [file:protected] => C:\inetpub\wwwroot\Cats\lib\ClsNaanalPDO.php 
    [line:protected] => 124 [trace:Exception:private] => Array ( [0] => Array ( [file] => 
C:\inetpub\wwwroot\Cats\lib\ClsNaanalPDO.php [line] => 124 [function] => execute [class] => 
PDOStatement [type] => -> [args] => Array ( ) ) [1] => Array ( 
[file] => C:\inetpub\wwwroot\Cats\lib\ClsNaanalPDO.php [line] => 
555 [function] => query [class] => ClsNaanalPDO [type] => 
-> [args] => Array ( [0] => ALTER IGNORE TABLE email_history ADD COLUMN for_module 
varchar(255) default NULL ) ) [2] => Array ( [file] =>
 C:\inetpub\wwwroot\\Cats\lib\DatabaseConnectionPDO.php 
[line] => 149 [function] => setQuery [class] => ClsNaanalPDO 
[type] => -> [args] => Array ( [0] => ALTER IGNORE TABLE 
email_history ADD COLUMN for_module varchar(255) default NULL ) ) 
[3] => Array ( [file] => C:\inetpub\wwwroot\Cats\modules\install\ajax\ui.php [line] => 1172
 [function] => query [class] => DatabaseConnection [type] => -> 
[args] => Array ( [0] => ALTER IGNORE TABLE email_history 
ADD COLUMN for_module varchar(255) default NULL ) ) [4] => Array ( [file] => 

您的MySQL版本是什么?“从MySQL 5.7.4开始,ALTER TABLE的IGNORE子句被删除,它的使用会产生一个错误。”服务器版本:5.7.10-log-MySQL社区服务器(GPL)看起来这就是原因。ALTER IGNORE不再受支持,因此您可能需要从代码中挖掘这些内容并将其更改为简单的
ALTER
,希望不会出现索引冲突。