Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access denied #25

Closed
sashuu69 opened this issue Apr 22, 2019 · 4 comments
Closed

Access denied #25

sashuu69 opened this issue Apr 22, 2019 · 4 comments

Comments

@sashuu69
Copy link

I download the branch 7.2 and docker-compose up it.
But, I cannot access database. Can't open PHPMyaadmin.
Everywhere I am getting the error:-

Warning: mysqli_connect(): (HY000/1045): Access denied for user 'root'@'172.28.0.3' (using password: YES) in /var/www/html/index.php on line 34

MySQL connecttion failed: Access denied for user 'root'@'172.28.0.3' (using password: YES)

@narendravaghela
Copy link
Member

Check two things:

  1. Make sure the phpmyadmin container is running.
  2. You need to pass mysql as a hostname instead of localhost

@sashuu69
Copy link
Author

Can you explain in detail please? I am just a novice in docker.

@theonlyakhil
Copy link

Check two things:

  1. Make sure the phpmyadmin container is running.
  2. You need to pass mysql as a hostname instead of localhost

The phpmyadmin container is working just fine.
I have done everything correct

@sashuu69
Copy link
Author

I have fixed the error. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants