mysql - Unable to obtain JDBC connection from datasource -
i trying run following command in gradle , gave me following error :
c:\gsoc\mifosx\mifosng-provider>gradle migratetenantlistdb -pdbname=mifosplatfor m-tenants listening transport dt_socket @ address: 8005 :migratetenantlistdb failed failure: build failed exception. * where: build file 'c:\gsoc\mifosx\mifosng-provider\build.gradle' line: 357 * went wrong: execution failed task ':flywaymigrate'. > unable obtain jdbc connection datasource * try: run --stacktrace option stack trace. run --info or --debug option more log output. build failed total time: 13.843 secs
the script file here , line no. of error shown 357 dont know why showing me error. incorrect configuration in mysql server please me out here: script:
task migratetenantlistdb<<{ description="migrates tenant list db. optionally can pass dbname. defaults 'mifosplatform-tenants' (example: -pdbname=somedbname)" def filepath = "filesystem:$projectdir" + system.properties['file.separator'] + '..' + system.properties['file.separator'] + 'mifosng-db' + system.properties['file.separator'] + 'migrations/list_db' def tenantsdbname = 'mifosplatform-tenants'; if (rootproject.hasproperty("dbname")) { tenantsdbname = rootproject.getproperty("dbname") } flyway.url= "jdbc:mysql://localhost:3306/$tenantsdbname" flyway.locations= [filepath] flywaymigrate.execute() }
the gradle script project has got mysql password hard-coded mysql. need set localhost password mysql , check connection before trying command.
Comments
Post a Comment