1

I am using Ubuntu 16.04 LTS and installed a fresh instance of Mysql.

During the installation, i have kept the root users password as blank.

During Magento 2 installation, I get access denied for the root user.

I tried without the password and by setting a new password.

I get as below:

There is no env.php in app/etc folder at this position.

enter image description here

  • login to phpmyadmin and check uername and password is correct or not. – Suresh Chikani Oct 19 '16 at 7:46
0

It is mysql permission error try this

Enter into mysql console

mysql -u root -p

after that give permission to access

GRANT ALL PRIVILEGES ON magento2.* TO 'root'@'%' WITH GRANT OPTION;

GRANT ALL PRIVILEGES ON magento2.* TO 'root'@'%' IDENTIFIED BY 'YourPassword';

FLUSH PRIVILEGES;

You can test like

mysql -u root -h localhost -p

if it is allow to mysql console, your problem got solved.

0

You have to remove this file env.php from app/etc folder.

After that clear your browser cache and start again, It will resolve your issue.

  • no i dont ve env file as of now during the installation. – Sushivam Oct 19 '16 at 7:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.