Can't attach MySQL database with my web application

270 views Asked by At

I am using the vmc tool to upload my web application to cloudfoundry. I have pushed my web aplication and created service to bind with. But I am getting a problem in tunneling it. I want to connect my database stored in backup file in my system with my web application. Here is the image where I entered the commands:

error while tunneling in vmc

I am having an error about path. I don't know how to resolve this. Please let me know how I should attach my databse with my web application.

2

There are 2 answers

2
Rohan On

This is probably not it but there's a space in your password string in the screenshot provided.

Besides that it seems that this error may be generated if the "build path" used for connecting to the database is incorrect. Manually check if the tunnel to the database works fine with those credentials and/or check to see if VMC can access other databases.

0
Ali Moghadam On

What the error is saying is that you need to have MySQL client on your build path. Caldecott (the application which gets executed when you type vmc tunnel) uses your own client for either MySQL, Postgres or Redis. If you do not have MySQL client installed or if you do not have it defined in your PATH environment variable, you will get this error.