At 10:50 AM 2/24/2003 -0700, Mike Doanh Tran wrote: >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.
>From the command line: $ echo 'describe test_table' | mysql {dbname} > test_table.file you may have to provide options to mysql, e.g. -h {host} -u {user} -p >From within the mysql client, I don't know. Regards, - Robert --------------------------------------------------------------------- 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