title: Hibernate auto create database
body: <p>I have a Java EE Hibernate project, and I'm using MySQL as a database.</p>
  
  <p>I want that when I first time run the project, it will create the database automatically.</p>
  
  <p>This is my <code>hibernate.cnf.xml</code>:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8' ?&gt;
  
  &lt;!DOCTYPE hibernate-configuration PUBLIC
        "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
        "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd" &gt;
  
  &lt;hibernate-configuration&gt;
      &lt;session-factory&gt;
          &lt;property name="connection.driver_class"&gt;com.mysql.jdbc.Driver&lt;/property&gt;
          &lt;property name="connection.url"&gt;jdbc:mysql://localhost/InternetProject&lt;/property&gt;
          &lt;property name="connection.username"&gt;root&lt;/property&gt;
          &lt;property name="connection.password"&gt;&lt;/property&gt;
          &lt;property name="connection.pool_size"&gt;10&lt;/property&gt;
          &lt;property name="dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/property&gt;
          &lt;property name="hibernate.hbm2ddl.auto"&gt;update&lt;/property&gt;
          &lt;property name="show_sql"&gt;true&lt;/property&gt;
          &lt;mapping class="entities.Business" /&gt;
          &lt;mapping class="entities.Coupon" /&gt;
          &lt;mapping class="entities.User" /&gt;
          &lt;mapping class="entities.LastLogin" /&gt;
      &lt;/session-factory&gt;  
  &lt;/hibernate-configuration&gt;
  </code></pre>
  
  <p>When I first time run this project on another computer, how can I make the database <code>InternetProject</code> to be created?</p>
  
  <p>According to the config file, it might already do it and I'm not aware to it.</p>
  
  <p>Thanks in advance.</p>