nanoninja / docker-nginx-php-mysql

Docker running Nginx, PHP-FPM, MySQL & PHPMyAdmin
1.76k stars 867 forks source link

PMA doesnt connect to mysql #54

Closed pavelloz closed 3 years ago

pavelloz commented 3 years ago

Im following readme instructions, not changing anything in the config, and out of the box PMA (or any other app for that matter) cannot connect to mysql.

I tried changing localhost to 127.0.0.1 - nothing Tried logging with root, dev, custom creds i set - nothing I can jump into the mysql container with root credentials from .env, but PMA just throws no matter what i do.

 Cannot log in to the MySQL server
 mysqli::real_connect(): (HY000/2002): Connection refused

Is there something not described that needs to be done for mysql to work?

pavelloz commented 3 years ago

Got it! mysql container runs on mysql host so thats what i had to put into PMA.