How Connect to a Database in Shell Programming?
Answer Posted / sibin kc
You can simply use as follows.
mysql -h <hostname> -u <user name> -p<password> -e "use
psa;select * from domains where domain_name = 'hai.com';"
| Is This Answer Correct ? | 9 Yes | 6 No |
Post New Answer View All Answers
How do I start a shell script?
What language is bash written in?
What lives in a shell?
How do I run a shell script in powershell?
What does debug script mean?
What is subshell?
What does the sh command do?
Is shell and terminal the same?
What is sudo command?
Why are there shells on the beach?
What is @echo off?
How do you debug a script?
Is scripting and coding the same thing?
Where are cowrie shells found?
Explain about the slow execution speed of shells?