Magento安装错误

时间:2014-05-26 04:19:21

标签: magento

我试图在我的电脑上安装magento。但它发生了这样的错误。

我使用localhost来安装this.it是wampserver 2.1版本。

Zend_Db_Statement_Exception Object
(
    [_previous:Zend_Exception:private] => 
    [message:protected] => SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'period'
    [string:Exception:private] => 
    [code:protected] => 42000
    [file:protected] => C:\wamp\www\Magento\magento\lib\Zend\Db\Statement\Pdo.php
    [line:protected] => 234
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => C:\wamp\www\Magento\magento\lib\Varien\Db\Statement\Pdo\Mysql.php
                    [line] => 110
                    [function] => _execute
                    [class] => Zend_Db_Statement_Pdo
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [1] => Array
                (
                    [file] => C:\wamp\www\Magento\magento\app\code\core\Zend\Db\Statement.php
                    [line] => 291
                    [function] => _execute
                    [class] => Varien_Db_Statement_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )..................

任何人都可以帮我解决这个问题。

1 个答案:

答案 0 :(得分:0)

更改您的magento数据库,如下所示:

  

ALTER TABLE`coupon_aggregated` CHANGE`句号``期间`DATE NOT NULL DEFAULT' 0000-00-00'评论'期间'

基本上,您必须为coupon_aggregated表中的句点字段设置默认值(0000-00-00)