Skip to content

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

Closed

Description

@falahdoclo12

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'

Activity

  1. guoard commented on May 12, 2022

    @guoard

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

  2. williamdes commented on May 12, 2022

    @williamdes
    Member

    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: 5.1.4...5.2.0

    @ibennetch @MauricioFauth does someone have an idea ?

  3. pinned this issue on May 12, 2022
  4. nunoperalta commented on May 12, 2022

    @nunoperalta

    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.

  5. nunoperalta commented on May 12, 2022

    @nunoperalta

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

  6. williamdes commented on May 12, 2022

    @williamdes
    Member

    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

  7. fduarte42 commented on May 12, 2022

    @fduarte42

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

  8. thespad commented on May 12, 2022

    @thespad

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

  9. williamdes commented on May 12, 2022

    @williamdes
    Member

    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:

    sed -i "s@define('CONFIG_DIR'.*@define('CONFIG_DIR', '/etc/phpmyadmin/');@" /var/www/html/libraries/vendor_config.php; \

  10. self-assigned this
    on May 12, 2022
  11. ibennetch commented on May 12, 2022

    @ibennetch
    Member

    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.

  12. causefx commented on May 12, 2022

    @causefx

    nice! thanks

  13. rfay commented on May 12, 2022

    @rfay

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

  14. nunoperalta commented on May 12, 2022

    @nunoperalta

    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

  15. rfay commented on May 13, 2022

    @rfay

    Fixed now, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions