phpmyadmin / docker

Docker container for phpMyAdmin
https://hub.docker.com/_/phpmyadmin
GNU General Public License v3.0
665 stars 456 forks source link

mysqli::real_connect(): (HY000/2002): No such file or directory #365

Closed falahdoclo12 closed 2 years ago

falahdoclo12 commented 2 years ago

Im install phpmyadmin with docker but can't login to my phpmyadmin

im using ubuntu Ubuntu 20.04 LTS x64

version: '3.4'
services:
  mariadb:
    image: mariadb
    ports:
      - 3306:3306
    environment:
      MYSQL_ROOT_PASSWORD: "password123!"
    restart: always
    volumes:
    - '/data/mysql:/var/lib/mysql'

  phpmyadmin:
    image: phpmyadmin/phpmyadmin
    restart: always
    links:
      - mariadb:db
    ports:
      - 9500:80
    environment:
      MYSQL_USERNAME: root
      MYSQL_ROOT_PASSWORD: "password123!"
      UPLOAD_LIMIT: 300M

  redis:
    image: 'bitnami/redis:latest'
    restart: always
    ports:
      - 6379:6379
    environment:
      - REDIS_PASSWORD="password123!"
    volumes:
      - '/data/redis-data:/bitnami'
guoard commented 2 years ago

this issue was produced after the release of version 5.2.0 I had the same issue and downgraded to version 5.1.3

williamdes commented 2 years ago

Please use the Docker official image image: phpmyadmin :) Reading our test suite results, 5.2.0 seems not to work for some odd reason

Please use 5.1.4 for now: https://github.com/phpmyadmin/docker/actions

And we did no changes, so I really am confused: https://github.com/phpmyadmin/docker/compare/5.1.4...5.2.0

@ibennetch @MauricioFauth does someone have an idea ?

nunoperalta commented 2 years ago

Please use the Docker official image image: phpmyadmin :)

Are you saying that this is incorrect?

image: phpmyadmin/phpmyadmin

and that I should be using this?

image: phpmyadmin

It's a bit confusing, as both exist on Docker Hub. I've been using the first, like the example above on this thread.

nunoperalta commented 2 years ago

Using image: phpmyadmin instead of image: phpmyadmin/phpmyadmin also doesn't work. config.inc.php ignored.

williamdes commented 2 years ago

Please use the Docker official image image: phpmyadmin :)

Are you saying that this is incorrect?

image: phpmyadmin/phpmyadmin

and that I should be using this?

image: phpmyadmin

It's a bit confusing, as both exist on Docker Hub. I've been using the first, like the example above on this thread.

Yes, see #363 and feel free to comment about that on #363

fduarte42 commented 2 years ago

Maybe mysqli extension is missing in image? Just a guess. So code did not change but environment did?

thespad commented 2 years ago

They've done this https://github.com/phpmyadmin/phpmyadmin/commit/1e542cd621bda5c29e8cebc2f99c2747a6cd96bb and it breaks your CONFIG_DIR sed in the dockerfiles.

williamdes commented 2 years ago

They've done this phpmyadmin/phpmyadmin@1e542cd and it breaks your CONFIG_DIR sed in the dockerfiles.

Oh, thank you ! We need to update this line then: https://github.com/phpmyadmin/docker/blob/b057ee3d899f98c871f16bdd112ffa411d8ef6ff/apache/Dockerfile#L112

ibennetch commented 2 years ago

A fix for this has been submitted to the official Docker repository.

Our own 'phpmyadmin/phpmyadmin' repository has already been updated, but as I mention in #363 I hope to deprecate that repository in the future.

causefx commented 2 years ago

nice! thanks

rfay commented 2 years ago

I don't see this problem being resolved by the latest (a few minutes ago) push to Dockerhub's library/phpmyadmin:5

nunoperalta commented 2 years ago

I don't see this problem being resolved by the latest (a few minutes ago) push to Dockerhub's library/phpmyadmin:5

It is resolved in the phpmyadmin/phpmyadmin image, but not yet in phpmyadmin (the official image), as it's still being reviewed. See: docker-library/official-images#12425

rfay commented 2 years ago

Fixed now, thanks!