List:MySQL on Win32« Previous MessageNext Message »
From:Jason Corcoran Date:July 21 2004 9:33am
Subject:Re: Redirect MySql command output
View as plain text  
If you are in the mysql client you can use the tee command

tee temp.txt;
Describe abs;
\t


This will produce a file called temp.txt with the output.

Jason

James Murphy wrote:

> How can I redirect the output of a MySql command to a file?
>  
> DESCRIBE abc > temp.txt
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 

-- 
________________________________________
Senior Software Engineer,
Activant Solutions Ltd.
Longford Ireland.

Email : Jason.Corcoran@stripped
Aim   : JasonCorcoran9
Http  : http://www.activant.com
Phone : + 353 (0) 43 49202

Thread
Redirect MySql command outputJames Murphy20 Jul
  • Re: Redirect MySql command outputDavid Emme21 Jul
  • Re: Redirect MySql command outputJason Corcoran21 Jul