I have a Java EE Hibernate project, and I\'m using MySQL as a database.
I want that when I first time run the project, it will create the database automatically.
will create tables. But it will not create database. Change the connection url to generate the database.create com.mysql.jdbc.Driver jdbc:mysql://localhost/InternetProject?createDatabaseIfNotExist=true root 10
Update : character encoding when creating database
jdbc:mysql://localhost/InternetProject?createDatabaseIfNotExist=true&useUnicode=yes&characterEncoding=UTF-8