0
我正嘗試使用flyway命令行工具遷移我的數據庫(MySQL)轉儲文件Google Cloud SQL。我抄google_sql.jar到遷徙路線,命令行-1.6 /瓶/,並設置以下的遷徙路線,命令行-1.6性能/ conf目錄/ flyway.properties:使用flyway遷移到Google Cloud SQL,應該複製哪些jar文件?
flyway.driver=com.google.appengine.api.rdbms.AppEngineDriver
flyway.url=jdbc:google:rdbms://myinstancename/devdb
flyway.user=myusername
flyway.password=mypassword
但是,這並不工作,併產生以下錯誤:
FlywayException: Error instantiating database driver: com.google.appengine.api.rdbms.AppEngineDriver
Occured in com.googlecode.flyway.core.Flyway in method configure, line number 789
Caused by java.lang.ClassNotFoundException: com.google.appengine.api.rdbms.AppEngineDriver
Occured in java.net.URLClassLoader$1 in method run, line number 217
有人能幫助我在確定飛行路線與谷歌雲SQL工作所需的jar文件?
當然,這是本地實例。對於遠程實例,您應該遵循https://developers.google.com/cloud-sql/docs/admin_tools授權您的計算機。 – 2012-04-21 02:55:20
對不起,這個跛腳的問題。我是否需要使用appengine sdk來運行flyway命令行? – libregeek 2012-04-27 09:43:08
僅當您希望將其與Google Cloud SQL一起使用時,否則不會。這是AppEngine/Cloud SQL的限制,而不是Flyway的限制。 – 2012-04-27 12:37:49