MySQL Forums
Forum List  »  Knowledge Base

Re: How to execute a query from Shell script
Posted by: Shaymol Chowdhury
Date: September 23, 2007 09:43PM

Hi
You can try with the following

mysql -u username -ppassword -D dbname -e "statment to excute" > outputfile.txt

Thanks
ShaymoL

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How to execute a query from Shell script
32508
September 23, 2007 09:43PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.