title: Can't Connect to MySQL Database using Adminer and docker-compose
body: <p>I'm trying to connect to my mysql database using official <code>adminer</code> and <code>mysql</code> images from docker hub.</p>
  <p>Here is my <code>docker-compose.yml</code> file configuration:</p>
  <pre><code>version: '3'
  services:
    mysql:
      image: mysql
      restart: always
      volumes: 
        - mysql:/var/lib/mysql
      environment: 
        - MYSQL_ALLOW_EMPTY_PASSWORD= 1
        - MYSQL_DATABASE= db
      ports: 
        - 3306:3306
        - 33060:33060
    adminer:
      image: adminer
      restart: always
      ports:
        - 8080:8080
      depends_on: 
        - mysql
  volumes:
    mysql:
  </code></pre>
  <p>Whenever I want to login to the MySQL using Adminer I face with the following problem:</p>
  <blockquote>
  <p>SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client</p>
  <p>SQLSTATE[HY000] [2002] No such file or directory</p>
  </blockquote>
  <p>Here is the inputs I've used trying to connect to MySQL from Adminer interface:</p>
  <pre class="lang-html prettyprint-override"><code>#first try
  System: MySQL
  Server: localhost
  Username: root
  Database: db
  
  #second try
  System: MySQL
  Server: mysql #container-name
  Username: root
  Database: db
  </code></pre>