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
What is shell and terminal?
What are script files?
What does debug script mean?
What is shell prompt?
What is @echo off?
Explore about environment variables?
What is shell application?
How do I run a .sh file?
Where is bash history?
Is cmd a shell?
What is the difference between bash and shell?
What are different types of shell?
write a shell script to check the failed jobs?
Why is the use of shell script?
What language is shell scripting?