Hi Thanks for the effort! Solved it.
Cheers. -- On Wed, 26 Feb 2003 08:28:04 mysql wrote: >Hi >you can use: > >mysql -e "select * from baa into outfile \"/home/godson/run.sh\";" test -u username >-ppassword > >to do that. else I think > > >mysql -e "select * from baa;" test -u username -ppassword >/home/godson/run.sh > >also can finish what you want! > >----- Original Message ----- >From: "g gnanaraj" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> >Cc: <[EMAIL PROTECTED]> >Sent: Tuesday, February 25, 2003 9:50 PM >Subject: Re: table row result spool to file > > >> Hi >> >> Thanks but I'm not getting the expected result. See the following: >> >> [quote] >> [EMAIL PROTECTED] godson]$ cat chk5.sh >> mysql -e "select * from baa into outfile \"/home/godson/run.sh\";" test >> [EMAIL PROTECTED] godson]$ ./chk5.sh >> ERROR 1045 at line 1: Access denied for user: '@localhost' (Using password: NO) >> [EMAIL PROTECTED] godson]$ >> [/quote] >> >> Any ideas ? >> >> >> >> -- >> >> On 25 Feb 2003 13:24:01 +010 >> Harald Fuchs wrote: >> >In article <[EMAIL PROTECTED]>, >> >"g gnanaraj" <[EMAIL PROTECTED]> writes: >> > >> >> Hi >> >> I need to create a file from the row of a table. I have done the following but >> >> it does not create a file but only display it on screen. What am I missing? >> > >> >> Thanks. >> > >> > >> >> [EMAIL PROTECTED] godson]$ mysql -e "select * from baa;" --pager=t.sh test >> > >> >How about using "SELECT... INTO OUTFILE..."? >> > >> > >> >[Filter fodder: SQL query] >> > >> >--------------------------------------------------------------------- >> >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 >> > >> > >> >> >> _____________________________________________________________ >> Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. >> http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus >> >> --------------------------------------------------------------------- >> 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 >> >> > _____________________________________________________________ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus --------------------------------------------------------------------- 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