mysql - Liquibase refuses to create a database that doesn't exist -


i'm trying run

liquibase update 

on database doesn't exist yet. expect create database me (i'm running root, shouldn't problem), instead i'm getting:

/vagrant/liquibase$ ./liquibase update liquibase home not set. liquibase home: /vagrant/liquibase liquibase update failed: com.mysql.jdbc.exceptions.jdbc4.mysqlsyntaxerrorexception: unknown database 'test_project' 

connection url parameters rescue again!

url: jdbc:mysql://localhost/dev_project?allowmultiqueries=true&createdatabaseifnotexist=true 

the createdatabaseifnotexist=true part did trick


Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -