cancel
Showing results for 
Search instead for 
Did you mean: 

http://127.0.0.1:8080/magento2/admin/admin/index/index

SOLVED

http://127.0.0.1:8080/magento2/admin/admin/index/index

2 exception(s):
Exception #0 (Zend_Db_Adapter_Exception): SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
Exception #1 (PDOException): SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

Exception #0 (Zend_Db_Adapter_Exception): SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
<pre>#1 Zend_Db_Adapter_Pdo_Mysql->_connect() called at [vendor\magento\framework\DB\Adapter\Pdo\Mysql.php:410]
#2 Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() called at [vendor\magento\zendframework1\library\Zend\Db\Adapter\Abstract.php:861]
#3 Zend_Db_Adapter_Abstract->quote('store_website', NULL) called at [generated\code\Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor.php:1636]
#4 Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->quote('store_website') called at [vendor\magento\framework\DB\Adapter\Pdo\Mysql.php:1181]
#5 Magento\Framework\DB\Adapter\Pdo\Mysql->showTableStatus('store_website', NULL) called at [generated\code\Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor.php:271]
#6 Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->showTableStatus('store_website', NULL) called at [vendor\magento\framework\DB\Adapter\Pdo\Mysql.php:2618]
#7 Magento\Framework\DB\Adapter\Pdo\Mysql->isTableExists('store_website', NULL) called at [generated\code\Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor.php:700]
#8 Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->isTableExists('store_website') called at [vendor\magento\module-store\App\Config\Source\RuntimeConfigSource.php:92]
#9 Magento\Store\App\Config\Source\RuntimeConfigSource->getEntities('store_website', 'code') called at [vendor\magento\module-store\App\Config\Source\RuntimeConfigSource.php:58]
#10 Magento\Store\App\Config\Source\RuntimeConfigSource->get('') called at [vendor\magento\framework\App\Config\ConfigSourceAggregated.php:40]
#11 Magento\Framework\App\Config\ConfigSourceAggregated->get('') called at [generated\code\Magento\Framework\App\Config\ConfigSourceAggregated\Proxy.php:95]
#12 Magento\Framework\App\Config\ConfigSourceAggregated\Proxy->get() called at [vendor\magento\module-store\App\Config\Type\Scopes.php:63]
#13 Magento\Store\App\Config\Type\Scopes->get('stores/1') called at [vendor\magento\framework\App\Config.php:132]
#14 Magento\Framework\App\Config->get('scopes', 'stores/1', array()) called at [vendor\magento\module-store\Model\StoreRepository.php:106]
#15 Magento\Store\Model\StoreRepository->getById(1) called at [vendor\magento\module-store\Model\StoreRepository.php:127]
#16 Magento\Store\Model\StoreRepository->getActiveStoreById(1) called at [vendor\magento\module-store\Model\StoreResolver.php:181]
#17 Magento\Store\Model\StoreResolver->getDefaultStoreById(1) called at [vendor\magento\module-store\Model\StoreResolver.php:126]
#18 Magento\Store\Model\StoreResolver->getCurrentStoreId() called at [vendor\magento\module-store\Model\StoreManager.php:160]
#19 Magento\Store\Model\StoreManager->getStore(NULL) called at [generated\code\Magento\Store\Model\StoreManagerInterface\Proxy.php:119]
#20 Magento\Store\Model\StoreManagerInterface\Proxy->getStore(NULL) called at [vendor\magento\module-store\Model\Resolver\Store.php:30]
#21 Magento\Store\Model\Resolver\Store->getScope(NULL) called at [vendor\magento\framework\App\Config\ScopeCodeResolver.php:49]
#22 Magento\Framework\App\Config\ScopeCodeResolver->resolve('stores', NULL) called at [vendor\magento\framework\App\Config.php:69]
#23 Magento\Framework\App\Config->getValue('admin/url/use_cu...', 'stores') called at [vendor\magento\module-backend\App\Area\FrontNameResolver.php:123]
#24 Magento\Backend\App\Area\FrontNameResolver->isHostBackend() called at [vendor\magento\module-backend\App\Area\FrontNameResolver.php:106]
#25 Magento\Backend\App\Area\FrontNameResolver->getFrontName(true) called at [vendor\magento\framework\App\AreaList.php:76]
#26 Magento\Framework\App\AreaList->getCodeByFrontName('admin_wiyj04') called at [vendor\magento\framework\App\Http.php:111]
#27 Magento\Framework\App\Http->launch() called at [generated\code\Magento\Framework\App\Http\Interceptor.php:24]
#28 Magento\Framework\App\Http\Interceptor->launch() called at [vendor\magento\framework\App\Bootstrap.php:261]
#29 Magento\Framework\App\Bootstrap->run(&Magento\Framework\App\Http\Interceptor#0000000020c9f4f40000000029709bc3#) called at [index.php:39]
</pre>

Exception #1 (PDOException): SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
<pre>#1 Zend_Db_Adapter_Pdo_Abstract->_connect() called at [vendor\magento\zendframework1\library\Zend\Db\Adapter\Pdo\Mysql.php:111]
#2 Zend_Db_Adapter_Pdo_Mysql->_connect() called at [vendor\magento\framework\DB\Adapter\Pdo\Mysql.php:410]
#3 Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() called at [vendor\magento\zendframework1\library\Zend\Db\Adapter\Abstract.php:861]
#4 Zend_Db_Adapter_Abstract->quote('store_website', NULL) called at [generated\code\Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor.php:1636]
#5 Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->quote('store_website') called at [vendor\magento\framework\DB\Adapter\Pdo\Mysql.php:1181]
#6 Magento\Framework\DB\Adapter\Pdo\Mysql->showTableStatus('store_website', NULL) called at [generated\code\Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor.php:271]
#7 Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->showTableStatus('store_website', NULL) called at [vendor\magento\framework\DB\Adapter\Pdo\Mysql.php:2618]
#8 Magento\Framework\DB\Adapter\Pdo\Mysql->isTableExists('store_website', NULL) called at [generated\code\Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor.php:700]
#9 Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->isTableExists('store_website') called at [vendor\magento\module-store\App\Config\Source\RuntimeConfigSource.php:92]
#10 Magento\Store\App\Config\Source\RuntimeConfigSource->getEntities('store_website', 'code') called at [vendor\magento\module-store\App\Config\Source\RuntimeConfigSource.php:58]
#11 Magento\Store\App\Config\Source\RuntimeConfigSource->get('') called at [vendor\magento\framework\App\Config\ConfigSourceAggregated.php:40]
#12 Magento\Framework\App\Config\ConfigSourceAggregated->get('') called at [generated\code\Magento\Framework\App\Config\ConfigSourceAggregated\Proxy.php:95]
#13 Magento\Framework\App\Config\ConfigSourceAggregated\Proxy->get() called at [vendor\magento\module-store\App\Config\Type\Scopes.php:63]
#14 Magento\Store\App\Config\Type\Scopes->get('stores/1') called at [vendor\magento\framework\App\Config.php:132]
#15 Magento\Framework\App\Config->get('scopes', 'stores/1', array()) called at [vendor\magento\module-store\Model\StoreRepository.php:106]
#16 Magento\Store\Model\StoreRepository->getById(1) called at [vendor\magento\module-store\Model\StoreRepository.php:127]
#17 Magento\Store\Model\StoreRepository->getActiveStoreById(1) called at [vendor\magento\module-store\Model\StoreResolver.php:181]
#18 Magento\Store\Model\StoreResolver->getDefaultStoreById(1) called at [vendor\magento\module-store\Model\StoreResolver.php:126]
#19 Magento\Store\Model\StoreResolver->getCurrentStoreId() called at [vendor\magento\module-store\Model\StoreManager.php:160]
#20 Magento\Store\Model\StoreManager->getStore(NULL) called at [generated\code\Magento\Store\Model\StoreManagerInterface\Proxy.php:119]
#21 Magento\Store\Model\StoreManagerInterface\Proxy->getStore(NULL) called at [vendor\magento\module-store\Model\Resolver\Store.php:30]
#22 Magento\Store\Model\Resolver\Store->getScope(NULL) called at [vendor\magento\framework\App\Config\ScopeCodeResolver.php:49]
#23 Magento\Framework\App\Config\ScopeCodeResolver->resolve('stores', NULL) called at [vendor\magento\framework\App\Config.php:69]
#24 Magento\Framework\App\Config->getValue('admin/url/use_cu...', 'stores') called at [vendor\magento\module-backend\App\Area\FrontNameResolver.php:123]
#25 Magento\Backend\App\Area\FrontNameResolver->isHostBackend() called at [vendor\magento\module-backend\App\Area\FrontNameResolver.php:106]
#26 Magento\Backend\App\Area\FrontNameResolver->getFrontName(true) called at [vendor\magento\framework\App\AreaList.php:76]
#27 Magento\Framework\App\AreaList->getCodeByFrontName('admin_wiyj04') called at [vendor\magento\framework\App\Http.php:111]
#28 Magento\Framework\App\Http->launch() called at [generated\code\Magento\Framework\App\Http\Interceptor.php:24]
#29 Magento\Framework\App\Http\Interceptor->launch() called at [vendor\magento\framework\App\Bootstrap.php:261]
#30 Magento\Framework\App\Bootstrap->run(&Magento\Framework\App\Http\Interceptor#0000000020c9f4f40000000029709bc3#) called at [index.php:39]
</pre>
1 ACCEPTED SOLUTION

Accepted Solutions

Re: http://127.0.0.1:8080/magento2/admin/admin/index/index

@BYK 

 

Please check your database connection in app/etc/env.php file. It should be correct then it will work.

 

Validate Host, Username, Db Name, Password 

Manish Mittal
https://www.manishmittal.com/

View solution in original post

2 REPLIES 2

Re: http://127.0.0.1:8080/magento2/admin/admin/index/index

@BYK 

 

Please check your database connection in app/etc/env.php file. It should be correct then it will work.

 

Validate Host, Username, Db Name, Password 

Manish Mittal
https://www.manishmittal.com/

Re: http://127.0.0.1:8080/magento2/admin/admin/index/index

Hi @BYK 

 

It looks like that your database user haven't permission to access database.

 

Kindly check database user credentials in env.php as @Manish Mittal mentioned.