听起来创建您的主题的人也创建了一个单独的数据库方法。Magento 无法连接到数据库时抛出的错误消息如下所示
Access denied for user 'username'@'localhost' (using password: YES)";i:1;s:3152:"#0 /Users/alanstorm/Sites2012/magento1point7pointzeropoint1.dev/lib/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()
你的错误信息的措辞
Uncaught exception 'Exception' with message 'Can't connect to mysql: Access denied for user 'mdayurve_letr885'@'localhost' (using password: NO)' in /home/mdayurve/public_html/letterfloret/install.lib.php:30
Uncaught exception 'Exception' with message 'Can't connect to mysql: Access denied for user 'username'@'localhost' (using password: NO)'
我会在主题文件中查找建立第二个数据库连接的 PHP 函数调用。
发布 和 的内容install.lib.php
将install-em0022.php
帮助人们为您调试您的问题。
更新:如果你看一下install-em0022.php
,文件的顶部包含以下内容
/**
* USER INSTRUCTION:
*
* 1. upload em0022-theme-package.zip, install-em0022.php and install.lib.php to your magento folder (/public_html)
* 2. configure install-em0022.php at CONFIGURE HERE section
* 3. run install-em0022.php from your web browser: http://www.yourdomain.com/install-em0022.php
* 4. delete em0022-theme-package.zip, install-em0022.php and install.lib.php
*/
################################################################################
### CONFIGURE HERE
################################################################################
$dbhost = "localhost"; # Database host name
$dbname = ""; # Database name
$dbuser = "root"; # Database username
$dbpass = ""; # Database password
$dbport = ""; # Database port
$adminuser = 'admin'; // magento admin username
$adminpass = ''; // magento admin password
显然你需要在这里复制你的数据库凭据来“安装”这个主题。