How Connect to a Database in Shell Programming?
Answer Posted / supraja
mysql -uusername -ppassword -hipaddress database -e "statement"
eg:mysql -uroot -psuppu -h192.168.0.1 supraja -e "select
count(*) from table"
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Write the syntax for "if" conditionals in linux?
What is bash command used for?
How to print all array elements and their respective indexes?
What is shell prompt?
What is bash coding?
Is shell a scripting language?
What is $1 in shell scripting?
What is a shell made of?
Print the 10th line without using tail and head command.
How do I edit a .sh file?
What can scripts do?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?
What are the different variables present in linux shell?
What is k shell?
How do I open the shell in cmd?