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?
I have 2 files and I want to print the records which are common to both.
What is k shell?
How to get script name inside a script?
Is bash an operating system?
Determine the output of the following command: name=shubham && echo ‘my name is $name’.
What is a command line shell?
What is the first line of a shell script called?
Is bash a shell script?
Why is it called a shell?
What are types of shells?
What is difference between shell and bash scripting?
What is the fastest scripting language?
What is shell geeksforgeeks?
What are the different variables present in linux shell?