title: cannot connect my springboot project to mysql database launched with docker: CommunicationsException: Communications link failure
body: <p>i cant connect my springboot project to mysql database and i cant find why. Ive done other projects before same way and they connected without problems yesterday. Now, all this proyects, also give same problem.</p>
  <p>my springbootapplication.java:</p>
  <pre><code>@SpringBootApplication
  public class ProjectSpringApplication implements CommandLineRunner {
  
      public static void main(String[] args) {
          SpringApplication.run(ProjectSpringApplication.class, args);
      }
  
      @Override
      public void run(String... args) throws Exception {
  
      }
  }
  </code></pre>
  <p>my application.properties:</p>
  <pre><code>spring.datasource.url=jdbc:mysql://localhost:3326/springmysqlcompanies?serverTimeZone=UTC
  spring.datasource.username=root
  spring.datasource.password=admin
  spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
  spring.jpa.show-sql=true
  spring.jpa.hibernate.ddl-auto=create-drop
  spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
  </code></pre>
  <p>Ive mysql-connector-java, spring data JPA dependencies.</p>
  <p>My docker mysql database is running on port 3326, name is springmysqlcompanies and has same username and password that i specified in my application.properties</p>
  <p>Anyone has some idea what is happening? I dont understand cause now all my mysql projects has exact same problem and i didnt modified anything-yesterday they all runned well. Im a bit frustrated</p>
  <p>Thank you!</p>