title: Unable to connect from Intellij to mySql running in docker container - "specified database user/password combination is rejected"
body: <p>Currently unable to connect from Intellij to mySql running locally on docker container on ubuntu.</p>
  
  <pre><code>+--------------------+
  | Database           |
  +--------------------+
  | information_schema |
  | mysql              |
  | performance_schema |
  | sys                |
  | tasklogs           |
  +--------------------+
  
  +----------+-----------+------+
  | DATABASE | HOST      | USER |
  +----------+-----------+------+
  | tasklogs | localhost | dev  |
  | tasklogs | localhost | root |
  +----------+-----------+------+
  
  +-----------------------------------------------------------+
  | Grants for dev@localhost                                  |
  +-----------------------------------------------------------+
  | GRANT USAGE ON *.* TO `dev`@`localhost`                   |
  | GRANT ALL PRIVILEGES ON `tasklogs`.* TO `dev`@`localhost` |
  +-----------------------------------------------------------+
  </code></pre>
  
  <p>docker ps -a:</p>
  
  <p><a href="https://i.stack.imgur.com/eJaM1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eJaM1.png" alt="enter image description here"></a></p>
  
  <p>When I connect via intellij:</p>
  
  <p><a href="https://i.stack.imgur.com/WVnvu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/WVnvu.png" alt="enter image description here"></a></p>
  
  <p>i.e. <strong>"The specified database user/password combination is rejected: [28000][1045] Access denied for user 'dev'@'localhost' (using password: YES)"</strong></p>
  
  <p>I am putting in the right password.</p>
  
  <p>Any help really appreciated.</p>
  
  <p>Thanks,</p>