Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How Connect to a Database in Shell Programming?

Answer Posted / sibin kc

You can simply use as follows.

mysql -h <hostname> -u <user name> -p<password> -e "use
psa;select * from domains where domain_name = 'hai.com';"

Is This Answer Correct ?    9 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you write a script to portray how set –x works?

966


Is cmd a shell?

968


Why is the use of shell script?

943


Where are cowrie shells found?

971


write a shell script to check the failed jobs?

4363


What is ms powershell?

974


How to check if a directory exists?

1121


What is mac default shell?

1064


What does $0 mean in shell script?

948


What is the conditional statement in shell scripting?

1179


What is the use of a shebang line?

1125


Explain about debugging?

976


Explain about gui scripting?

1049


What is the equivalent of a file shortcut that we have a window on a linux system?

1073


How do I start a shell script?

1142