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
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
When should shell programming/scripting not be used?
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
How do I start a shell script?
Where is bash history?
What are the four fundamental components of every file system on linux?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
Explore about environment variables?
Explain about echo command?
Why are there shells on the beach?
How do I set bash as default shell mac?
How can the contents of a file inside jar be read without extracting in a shell script?
write a shell script to check the failed jobs?
Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?
What is scripting used for?