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

disable auto login #180

Closed
mictadlo opened this issue Jul 4, 2018 · 7 comments
Closed

disable auto login #180

mictadlo opened this issue Jul 4, 2018 · 7 comments
Assignees
Labels

Comments

@mictadlo
Copy link

mictadlo commented Jul 4, 2018

Hi,
I have the following phpmyadmin entries in my docker-compose.yml file:

phpmyadmin:
  image: phpmyadmin/phpmyadmin
  restart: always
  links:
    - db
  ports:
    - 8183:80
  environment:
    PMA_USER: root
    PMA_PASSWORD: xxx
    #PMA_ARBITRARY: 1

When I open phpmyadmin is automatically log in.

How is it possible to disable auto login?

Thank you in advance,

Michal

@nijel nijel self-assigned this Jul 4, 2018
@nijel nijel added the question label Jul 4, 2018
@nijel
Copy link
Contributor

nijel commented Jul 4, 2018

Just don't specify PMA_PASSWORD and PMA_USER ;-).

@nijel nijel closed this as completed Jul 4, 2018
@ghost
Copy link

ghost commented Jan 19, 2019

Just don't specify PMA_PASSWORD and PMA_USER ;-).

but then this happens

Cannot connect: invalid settings.
mysqli_real_connect(): (HY000/1045): Access denied for user ''@'phpmyadmin.compose_default' (using password: NO)
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

@pesovski
Copy link

Just don't specify PMA_PASSWORD and PMA_USER ;-).

but then this happens

Cannot connect: invalid settings.
mysqli_real_connect(): (HY000/1045): Access denied for user ''@'phpmyadmin.compose_default' (using password: NO)
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

Hi. Did you solve this? I am experiencing the same issue now.

@williamdes
Copy link
Member

Hi @pesovski
Could you send your docker compose file?

@pesovski
Copy link

I just fixed it actually. Or it fixed itself.

Having PMA_USER and PMA_PASSWORD doesn't ask for login.

When I removed these 2 environment variables, I got the same error as @ghost: Cannot connect: invalid settings.

Once you wrote I tried again, didn't change anything and it happened to be working. Thanks.

@charlesc-ai
Copy link

charlesc-ai commented Jun 22, 2021

In order to disable auto login for Phpmyadmin, you should remove PMA_USER and PMA_PASSWORD, just keep PMA_HOSTS,
then the phpmyadmin will ask for login to access the database.

@CyberHacky-zz
Copy link

Solution :

Add Login Panel to PHPMyadmin

  1. First create Docker using PMA_USER: root and PMA_PASSWORD: secret
  2. Now Compose the docker and go to the User Account menu.
  3. Click on the Username which you have created using the PMA_USER command
  4. Change the Password which you want and save it
  5. Now Stop Docker Service
  6. Remove Both Line PMA_USER and PMA_PASSWORD from the docker-compose.yml file
  7. Now run Docker and you can log in with updated password with the same username

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

No branches or pull requests

6 participants