title: Spring Boot & MySQL can`t find the DB
body: <p>I am trying to solve this problem in my project, but it appears every time.
  I have already added properties with prefix spring.datasource but it is still not working.</p>
  
  <p>So can somebody help me? </p>
  
  <p>I want to build web application with Spring Boot, MySQL and Hibernate.
  I have not found the answer in internet.
  Thanks.</p>
  
  <pre><code>2016-10-22 14:49:15.072 ERROR 23100 --- [  restartedMain] o.s.b.d.LoggingFailureAnalysisReporter   : 
  ***************************
  APPLICATION FAILED TO START
  ***************************
  Description:
  Cannot determine embedded database driver class for database type NONE
  Action:
  If you want an embedded database please put a supported one on the       classpath. If you have database settings to be loaded from a particular profile  you may need to active it (no profiles are currently active).
  </code></pre>
  
  <p>Here is my code:
          
      
  
  <pre><code>&lt;groupId&gt;com&lt;/groupId&gt;
  &lt;artifactId&gt;lardi&lt;/artifactId&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  &lt;name&gt;Phone Book&lt;/name&gt;
  
  &lt;properties&gt;
      &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
      &lt;start-class&gt;com.SpringBootWebApplication&lt;/start-class&gt;
  
      &lt;!-- JSON --&gt;
      &lt;jackson-json.version&gt;2.8.0&lt;/jackson-json.version&gt;
  
      &lt;!-- WEB jars --&gt;
      &lt;webjars-bootstrap.version&gt;3.3.6&lt;/webjars-bootstrap.version&gt;
      &lt;webjars-jquery.version&gt;2.2.4&lt;/webjars-jquery.version&gt;
      &lt;webjars-noty.version&gt;2.3.8&lt;/webjars-noty.version&gt;
      &lt;webjars-datatables.version&gt;1.10.12&lt;/webjars-datatables.version&gt;
  &lt;/properties&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  
  &lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;1.4.1.RELEASE&lt;/version&gt;
  &lt;/parent&gt;
  
  &lt;dependencies&gt;
      &lt;!-- Spring Boot WEB --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-jdbc&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-redis&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-devtools&lt;/artifactId&gt;
          &lt;optional&gt;true&lt;/optional&gt;
      &lt;/dependency&gt;
      &lt;!-- Spring Boot TEST --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;!-- Spring Boot Validation --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-validation&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- Spring Boot Security --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-security&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- Spring Boot JPA --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-thymeleaf&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- MySQL --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;mysql&lt;/groupId&gt;
          &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;!-- JSON --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
          &lt;version&gt;${jackson-json.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.fasterxml.jackson.datatype&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-datatype-hibernate5&lt;/artifactId&gt;
          &lt;version&gt;${jackson-json.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.fasterxml.jackson.datatype&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-datatype-jsr310&lt;/artifactId&gt;
          &lt;version&gt;${jackson-json.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- Webjars --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.webjars&lt;/groupId&gt;
          &lt;artifactId&gt;bootstrap&lt;/artifactId&gt;
          &lt;version&gt;${webjars-bootstrap.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.webjars&lt;/groupId&gt;
          &lt;artifactId&gt;jquery&lt;/artifactId&gt;
          &lt;version&gt;${webjars-jquery.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.webjars.bower&lt;/groupId&gt;
          &lt;artifactId&gt;noty&lt;/artifactId&gt;
          &lt;version&gt;${webjars-noty.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.webjars&lt;/groupId&gt;
          &lt;artifactId&gt;datatables&lt;/artifactId&gt;
          &lt;version&gt;${webjars-datatables.version}&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>@SpringBootApplication
  @EnableJpaRepositories(basePackageClasses = {Contact.class, User.class, BaseEntity.class})
  public class SpringBootWebApplication {
      public static void main(String[] args) {
          SpringApplication.run(SpringBootWebApplication.class, args);
      }
  }
  </code></pre>
  
  <p>Here is my properties:</p>
  
  <pre><code>spring.jpa.database=MYSQL
  spring.datasource.url=jdbc:mysql://localhost:3306/lardi
  spring.datasource.username=root
  spring.datasource.password=2940063
  spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  useSSL=false
  spring.jpa.show-sql=true
  spring.jpa.hibernate.ddl-auto=validate
  spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
  </code></pre>