Magento数据库访问配置


Magento db access configuration

我相信这是一个非常新的问题,我对magento和PHP都是新手。我在连接我的megento安装到MySQL实例时遇到了困难。我已经安装了Zend软件包,并尝试在''Zend''magento''app''etc目录下编辑config.xml和local.xml,如下所示

        <connection>//config.xml
            <host>localhost:4928</host>
            <username>root</username>
            <password>test</password>
            <dbname>store</dbname>
            <model>mysql4</model>
            <initStatements>SET NAMES utf8</initStatements>
            <type>pdo_mysql</type>
            <active>0</active>
        </connection>
                <connection> //local.xml
                    <host><![CDATA[localhost:4928]]></host>
                    <username><![CDATA[root]]></username>
                    <password><![CDATA[test]]></password>
                    <dbname><![CDATA[store]]></dbname>
                    <active>1</active>
                </connection>

在这样做之后,我得到了以下错误

Warning: include(Mage'Catalog'Model'Attribute'Backend'Customlayoutupdate.php) [function.include]: failed to open stream: No such file or directory  in E:'servers'zend'magento'app'code'core'Mage'Core'functions.php on line 70
Trace:
#0 E:'servers'zend'magento'app'code'core'Mage'Core'functions.php(70): mageCoreErrorHandler(2, 'include(Mage'Ca...', 'E:'servers'zend...', 70, Array)
#1 E:'servers'zend'magento'app'code'core'Mage'Core'functions.php(70): __autoload()
#2 [internal function]: __autoload('Mage_Catalog_Mo...')
#3 E:'servers'zend'magento'app'code'core'Mage'Core'Model'Config.php(967): class_exists('Mage_Catalog_Mo...')

我已在http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/customize_part_of_configuration

这还不是一个真正的答案,但我还不能为你的问题添加评论。;)

这个错误似乎与数据库连接无关。请检查,如果以下文件存在于您的本地Magento安装中:

E:'servers'zend'magento'app'code'core'Mage'Catalog'Model'Attribute'Backend'Customlayoutupdate.php

Magento无法加载上面的文件-可能它丢失了,或者访问权限设置不正确。

您使用的是哪一个Magento版本?