-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
programmatically execute mysql commands #766
Comments
Try setting env var |
thanks a lot, this solves it. But now I get different error, saying that database and branch do not exist in the org, even though they do exist and I am able to run the same command normally. |
I believe you'll need to authenticate with a service token. Which you can create by going to your organization settings. And adding Set the following env vars once you have the token.
|
Gave all the permissions and set up the enviroment variables as well, although I am passing them in the command itself using Here's how I was doing:
Anyway, now I am doing differently, using |
I believe you tried this, but just to confirm. The command works when run directly? Not from python? Are you getting the same error when the service token is passed? |
Yes, it works. see for example:
|
Pretty much the title, is it possible to execute mysql commands programmatically. I think
pscale shell database branch
should do that but when I try to run a command, it throws an error saying, shell command is only possible in interactive mode.The text was updated successfully, but these errors were encountered: