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

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

Closed
falahdoclo12 opened this issue May 12, 2022 · 13 comments
Closed

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

falahdoclo12 opened this issue May 12, 2022 · 13 comments
Assignees

Comments

@falahdoclo12
Copy link

falahdoclo12 commented May 12, 2022

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
Copy link

guoard commented May 12, 2022

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
Copy link
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 ?

@nunoperalta
Copy link

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
Copy link

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

@williamdes
Copy link
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

tms0 added a commit to colibris-xyz/phpmyadmin-docker that referenced this issue May 12, 2022
@fduarte42
Copy link

fduarte42 commented May 12, 2022

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

@thespad
Copy link

thespad commented May 12, 2022

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

@williamdes
Copy link
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; \

williamdes added a commit that referenced this issue May 12, 2022
@williamdes williamdes self-assigned this May 12, 2022
@ibennetch
Copy link
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.

@causefx
Copy link

causefx commented May 12, 2022

nice! thanks

@rfay
Copy link

rfay commented May 12, 2022

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

@nunoperalta
Copy link

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
Copy link

rfay commented May 13, 2022

Fixed now, thanks!

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

No branches or pull requests

9 participants