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
Why is shell scripting important?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
What is difference between shell and bash 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?
How will you emulate wc –l using awk?
What is bash used for?
What does it mean to debug a script?
How do I run a script from command prompt?
What does chmod do?
Can shell script run on windows?
How to pass an argument to a script?
How do I stop script errors?
Why is it called a shell?
What is the meaning of $1 in shell script?
Where is bash history?