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
Can you write a script to portray how set –x works?
Is cmd a shell?
Why is the use of shell script?
Where are cowrie shells found?
write a shell script to check the failed jobs?
What is ms powershell?
How to check if a directory exists?
What is mac default shell?
What does $0 mean in shell script?
What is the conditional statement in shell scripting?
What is the use of a shebang line?
Explain about debugging?
Explain about gui scripting?
What is the equivalent of a file shortcut that we have a window on a linux system?
How do I start a shell script?