On Mon, Feb 24, 2003 at 10:50:53AM -0700, Mike Doanh Tran wrote:
> Hi,
> 
> How do i redirect a mysql output to a file from the command line?
> For example,  I want to save DESCRIBE test_table > test_table.file 
> without doing a MYSQLDUMP.

  Use the mysql command line client from your command line:

  % mysql --execute "\u mysql; DESCRIBE table;" > table.file
  
-- 
Zak Greant <[EMAIL PROTECTED]>
  MySQL AB Community Advocate
  Personal Blog: http://zak.fooassociates.com

MySQL Tip: Upgrading your servers to 4.0.8? Make sure to upgrade your
  clients to 4.0.8 as well! See http://mysql.com/doc/en/News-4.0.8.html

---------------------------------------------------------------------
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