title: o.a.tomcat.jdbc.pool.ConnectionPool : Unable to create initial connections of pool. Spring Boot + MySql
body: <p>I want to connect Spring boot application with database with help of MySql WorkBranch</p>
  
  <pre><code>o.a.tomcat.jdbc.pool.ConnectionPool      : Unable to create initial connections of pool.
  </code></pre>
  
  <p>is the exception i get </p>
  
  <p>pom.xml</p>
  
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;mysql&lt;/groupId&gt;
              &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
              &lt;version&gt;5.1.27&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>application.properties</p>
  
  <pre><code>spring.thymeleaf.mode=LEGACYHTML5
  #toa gore mora
  # ===============================
  # = DATA SOURCE
  # ===============================
  
  # Set here configurations for the database connection
  
  # Connection url for the database "netgloo_blog"
  spring.datasource.url = jdbc:mysql://localhost:3306/OnlineBanking
  
  # Username and secret
  spring.datasource.username = root
  spring.datasource.password =
  
  # Keep the connection alive if idle for a long time (needed in production)
  spring.datasource.tomcat.max-active=1
  
  # ===============================
  # = JPA / HIBERNATE
  # ===============================
  
  # Use spring.jpa.properties.* for Hibernate native properties (the prefix is
  # stripped before adding them to the entity manager).
  
  # Show or not log for each sql query
  spring.jpa.show-sql = true
  
  # Hibernate ddl auto (create, create-drop, update): with "update" the database
  # schema will be automatically updated accordingly to java entities found in
  # the project
  spring.jpa.hibernate.ddl-auto = update
  
  # Allows Hibernate to generate SQL optimized for a particular DBMS
  spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
  </code></pre>
  
  <p>In MySql Workbranch server is set here is image:<a href="https://i.stack.imgur.com/F3G4s.png" rel="nofollow noreferrer">https://i.stack.imgur.com/F3G4s.png</a></p>
  
  <p>I get this erros</p>
  
  <pre><code>2018-05-13 22:04:38.234 ERROR 6176 --- [           main] o.a.tomcat.jdbc.pool.ConnectionPool      : Unable to create initial connections of pool.
  
  com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_162]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_162]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_162]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_162]
      at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) ~[mysql-connector-java-5.1.27.jar:na]
  </code></pre>
  
  <p>Can somebody help to connect spring boot with the database 
  Thanks</p>