4
rated 0 times
[
4]
[
0]
/ answers: 1 / hits: 1202
/ 1 Year ago, sat, january 21, 2023, 3:48:21
I generally run sudo mysql database < database.dump
and type the password on prompt.
In order to automate this, I tried to execute echo 'password' | sudo -S mysql database < database.dump
but it is not recognizing my password.
I can sudo -S
other commands normally. What might be the problem?
More From » sudo