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
What does chmod do?
What is inside a seashell?
Differentiate between ‘ and ” quotes.
What is the default shell of solaris?
What is bash eval?
What are filters explain sort with all the options available?
How do I run a powershell script?
What are the different variables present in linux shell?
What is an inode block?
How to redirect both standard output and standard error to the same location?
Is shell scripting a language?
What is c in shell script?
What is the syntax of "nested if statement" in shell scripting?
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?
Why is it called a shell?