How can I execute an SQL command through a shell script so that I can make it automated?
I want to restore data I have collected in a SQL file using a shell script.
Use this syntax:
mysql -u $user -p$passsword -Bse "command1;command2;....;commandn"