Bluehost共享主机上的Flyway数据库迁移

时间:2014-05-05 21:35:37

标签: database-migration flyway bluehost

伙计,

我试图在共享的Bluehost服务器上使用Flyway,而且我收到了一个非常神秘的错误。不确定如何进行故障排除..我确信基本连接/凭据正在运行,因为将flyway配置设置更改为错误的密码会产生不同的错误。

请注意,我可以使用' mysql -u blah -p'从服务器框从命令行连接到数据库。正好。

有关如何解决以下问题的任何提示? flyway -X init的输出如下。

Flyway配置文件:http://pastebin.com/8dsWE3W2

./flyway -X init

的输出
/usr/bin/tput
Flyway (Command-line Tool) v.3.0

DEBUG: Adding location to classpath: /home1/philost2/checkout/cocktailbuilder-master/server/_devtools/flyway/bin/../jars/mysql-connector-java-5.1.30-bin.jar
DEBUG: Adding location to classpath: /home1/philost2/checkout/cocktailbuilder-master/server/_devtools/flyway/bin/../jars/h2-1.3.170.jar
ERROR: Unexpected error
org.flywaydb.core.api.FlywayException: Unable to obtain Jdbc connection from DataSource (jdbc:mysql://localhost/philost2_cocktailbuilder_prod?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false) for user '<redacted>'
   at org.flywaydb.core.internal.util.jdbc.DriverDataSource.getConnectionFromDriver(DriverDataSource.java:266)
   at org.flywaydb.core.internal.util.jdbc.DriverDataSource.getConnection(DriverDataSource.java:226)
   at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:50)
   at org.flywaydb.core.Flyway.execute(Flyway.java:1144)
   at org.flywaydb.core.Flyway.init(Flyway.java:970)
   at org.flywaydb.commandline.Main.executeOperation(Main.java:118)
   at org.flywaydb.commandline.Main.main(Main.java:88)
Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '??????????????' at line 1
   at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1049)
   at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4232)
   at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4164)
   at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2615)
   at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2776)
   at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2832)
   at com.mysql.jdbc.ConnectionImpl.configureClientCharacterSet(ConnectionImpl.java:1937)
   at com.mysql.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:3720)
   at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2554)
   at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2321)
   at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832)
   at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:413)
   at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
   at org.flywaydb.core.internal.util.jdbc.DriverDataSource.getConnectionFromDriver(DriverDataSource.java:264)

0 个答案:

没有答案