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 is option in shell script?
How do I open a jshell in cmd?
What is the difference between break and continue commands?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.
What is subshell?
How to print all the arguments provided to the script?
Is powershell a language?
Why is it called a shell?
Explain about gui scripting?
What is shell chemistry?
What does egrep mean?
is this growing field and what is average package in this?
How to get the 3rd element/column from each line from a file?
how will you find the total disk space used by a specific user?
Is scripting and coding the same thing?