You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.
I´ve got a problem with starting and stopping my local mysql process from my electron app.
( I am on macOS Catalina and mysql.server is set in my $PATH)
I can do it with both child_process spawn and child_process exec like this:
If not, the issue might be this: mysql.server is set in my $PATH... whereas sudo-prompt needs you to be explicit with environment variables, because of the difficulties of making this work cross-platform.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello and thanks for a great library!
I´ve got a problem with starting and stopping my local mysql process from my electron app.
( I am on macOS Catalina and mysql.server is set in my $PATH)
I can do it with both
child_process spawn
andchild_process exec
like this:and:
They both give me the sudo password prompt in my terminal though, so its not working when building the app.
So I try to do it with sudo-prompt like this:
I get the prompt dialog like expected, but then the command fails and gives me
Error: Command failed: mysql.server start
in the terminal.The strange thing is that when I run
apachectl start
with sudo-prompt, it works like a charm!Any thoughts on what could cause this issue?
Thanks in advance!
The text was updated successfully, but these errors were encountered: