0
我通过vagrant box安装了Magento。它工作正常。无法通过命令行界面访问magento类/ vagrant box
然而,我需要测试代码经由CLI .I相应地创建一个页面在网站的根用以下代码:
require_once('app/Mage.php'); //Path to Magento
umask(0);
Mage::app();
$customer = Mage::getModel('customer/customer')->load(79);
print_r($customer->getData());
我然后试图通过命令行接口来访问的窗口上当前页( cygwin)与以下命令
php magento/test.php
我得到以下错误;
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [20 02] No connection could be made because the target machine actively refused it.
' in C:\DevFolder\magentoKlierik\magento\lib\Zend\Db\Adapter\Pdo\Abstract.php:12 9
但是,当我通过URL访问同一个电话时,即
为什么会出现使用命令行,怎么给权限的命令行上,当差