On 6 May 2002 at 21:54, Mithun Bhattacharya wrote:
> --- Goutam Baul <[EMAIL PROTECTED]> wrote:
> > How do I have a batch file containing some sql
> > commands to execute under 
> > mySQL from the dollar prompt ?

I do this for psql, I hope it will work for mysql as well..

$ mysql -u<username> -p<password> <dbname> < somefile.sql

Don't forget to put a exit or \q as last statement in your sql script.

HTH

 Shridhar


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to