Hi team,
I am unable to install magento theme which i purchased from plaza themes, there is a error which is throwing. Please help me to resolve this issue...
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
Trace: #0 /home/buildandsave/public_html/matrigu/lib/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /home/buildandsave/public_html/matrigu/lib/Varien/Db/Adapter/Pdo/Mysql.php(320): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /home/buildandsave/public_html/matrigu/lib/Zend/Db/Adapter/Abstract.php(459): Varien_Db_Adapter_Pdo_Mysql->_connect() #3 /home/buildandsave/public_html/matrigu/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array) #4 /home/buildandsave/public_html/matrigu/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array) #5 /home/buildandsave/public_html/matrigu/app/code/core/Mage/Core/Model/Resource.php(169): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8') #6 /home/buildandsave/public_html/matrigu/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element)) #7 /home/buildandsave/public_html/matrigu/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->getConnection('core_write') #8 /home/buildandsave/public_html/matrigu/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write') #9 /home/buildandsave/public_html/matrigu/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter() #10 /home/buildandsave/public_html/matrigu/app/code/core/Mage/Core/Model/Resource/Cache.php(53): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter() #11 /home/buildandsave/public_html/matrigu/app/code/core/Mage/Core/Model/Cache.php(478): Mage_Core_Model_Resource_Cache->getAllOptions() #12 /home/buildandsave/public_html/matrigu/app/code/core/Mage/Core/Model/Cache.php(520): Mage_Core_Model_Cache->_initOptions() #13 /home/buildandsave/public_html/matrigu/app/code/core/Mage/Core/Model/App.php(1183): Mage_Core_Model_Cache->canUse('config') #14 /home/buildandsave/public_html/matrigu/app/code/core/Mage/Core/Model/Config.php(414): Mage_Core_Model_App->useCache('config') #15 /home/buildandsave/public_html/matrigu/app/code/core/Mage/Core/Model/Config.php(294): Mage_Core_Model_Config->_canUseCacheForInit() #16 /home/buildandsave/public_html/matrigu/app/code/core/Mage/Core/Model/App.php(413): Mage_Core_Model_Config->loadModulesCache() #17 /home/buildandsave/public_html/matrigu/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules() #18 /home/buildandsave/public_html/matrigu/app/Mage.php(684): Mage_Core_Model_App->run(Array) #19 /home/buildandsave/public_html/matrigu/index.php(87): Mage::run('', 'store') #20 {main}
with regards,
Harish Kumar R
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
You are trying to access the database without using a password.
And it's a really bad idea to use the root account for accessing the database as this will give full permissions to wipe the database engine off the map as you have access to the schema and database access tables.
The user name and password in app\etc\local.xml must match the name and password assigned as the database login.