Date |17 Aug 2001 06:13:08 -0000
>From |"Munish  Malhotra" <[EMAIL PROTECTED]>

Hello!

M M> Dear Sir,
M M> Can you please tell me how  to access data from a MySql database using a Bash 
Shell Script i.e. how to connect to a MySql database and retrive records and to 
disconnect from database. 
M M> I shall be very thankful to you.
You need to use command line driven 'mysql' command
For example
echo "select * from test;"|mysql test;


___________________________________________________________________
For technical support contracts, visit https://order.mysql.com/
This email is sponsored by SWSoft, http://www.asplinux.ru/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Grigory Bakunov <[EMAIL PROTECTED]>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB / SWSoft
/_/  /_/\_, /___/\___\_\___/
       <___/   www.mysql.com


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to