Marc Logemann
2008-10-10 17:31:31 UTC
Hi,
i want to do "generateChangeLog". Here is my liquibase.properties file:
changeLogFile=root.changelog.xml
username=xxxx
password=xxxx
url=jdbc:mysql://localhost/bwh
driver=com.mysql.jdbc.Driver
logLevel=SEVERE
-----
what i get is this. am i correct that is breaks on this line:
readSequences(requestedSchema); ???
All in all its weird. Of course the database "bwh" exists. I can even
chose the default "mysql" db without success.
Any help appreciated.
10.10.2008 19:20:28 liquibase.commandline.Main main
SCHWERWIEGEND: Incorrect database name ''
liquibase.exception.JDBCException: java.sql.SQLException: Incorrect
database name ''
at
liquibase
.database
.structure.SqlDatabaseSnapshot.<init>(SqlDatabaseSnapshot.java:94)
at
liquibase
.database
.structure.MySqlDatabaseSnapshot.<init>(MySqlDatabaseSnapshot.java:55)
at
liquibase
.database.MySQLDatabase.createDatabaseSnapshot(MySQLDatabase.java:163)
at liquibase.diff.Diff.compare(Diff.java:61)
at
liquibase
.commandline
.CommandLineUtils.doGenerateChangeLog(CommandLineUtils.java:128)
at liquibase.commandline.Main.doMigration(Main.java:578)
at liquibase.commandline.Main.main(Main.java:90)
Caused by: java.sql.SQLException: Incorrect database name ''
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2851)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1534)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1625)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2291)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2226)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1159)
at
liquibase
.database
.structure
.MySqlDatabaseSnapshot
.getColumnTypeAndDefValue(MySqlDatabaseSnapshot.java:73)
at
liquibase
.database
.structure.SqlDatabaseSnapshot.readColumns(SqlDatabaseSnapshot.java:275)
at
liquibase
.database
.structure.SqlDatabaseSnapshot.<init>(SqlDatabaseSnapshot.java:85)
... 6 more
--
Marc Logemann
blog http://logemannreloaded.blogspot.com
privat http://www.logemann.org
i want to do "generateChangeLog". Here is my liquibase.properties file:
changeLogFile=root.changelog.xml
username=xxxx
password=xxxx
url=jdbc:mysql://localhost/bwh
driver=com.mysql.jdbc.Driver
logLevel=SEVERE
-----
what i get is this. am i correct that is breaks on this line:
readSequences(requestedSchema); ???
All in all its weird. Of course the database "bwh" exists. I can even
chose the default "mysql" db without success.
Any help appreciated.
10.10.2008 19:20:28 liquibase.commandline.Main main
SCHWERWIEGEND: Incorrect database name ''
liquibase.exception.JDBCException: java.sql.SQLException: Incorrect
database name ''
at
liquibase
.database
.structure.SqlDatabaseSnapshot.<init>(SqlDatabaseSnapshot.java:94)
at
liquibase
.database
.structure.MySqlDatabaseSnapshot.<init>(MySqlDatabaseSnapshot.java:55)
at
liquibase
.database.MySQLDatabase.createDatabaseSnapshot(MySQLDatabase.java:163)
at liquibase.diff.Diff.compare(Diff.java:61)
at
liquibase
.commandline
.CommandLineUtils.doGenerateChangeLog(CommandLineUtils.java:128)
at liquibase.commandline.Main.doMigration(Main.java:578)
at liquibase.commandline.Main.main(Main.java:90)
Caused by: java.sql.SQLException: Incorrect database name ''
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2851)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1534)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1625)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2291)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2226)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1159)
at
liquibase
.database
.structure
.MySqlDatabaseSnapshot
.getColumnTypeAndDefValue(MySqlDatabaseSnapshot.java:73)
at
liquibase
.database
.structure.SqlDatabaseSnapshot.readColumns(SqlDatabaseSnapshot.java:275)
at
liquibase
.database
.structure.SqlDatabaseSnapshot.<init>(SqlDatabaseSnapshot.java:85)
... 6 more
--
Marc Logemann
blog http://logemannreloaded.blogspot.com
privat http://www.logemann.org