MySQL Forums
Forum List  »  Other Migration

Passing variable from My sql command to text file
Posted by: rajeev sharma
Date: September 12, 2008 12:01AM

I am trying to paas a variable in batch file to a text file through Mysql command
but i am not able to do that.
If i am calling the text file in batch file through Mysql command it is running fine

below is the code written in Batch file
Mysql -u %2 -p %4 < C:\src\thirdpillar\beacon-dev\beacon-core\database\beacon\bin\MYsql1\cleardatabase.txt%4

where %4 is the datbase name which passing to cleardatabse.txt file

please help me in this

Rajeev Kumar sharma
rajeev787@Rediffmail.com

Options: ReplyQuote


Subject
Views
Written By
Posted
Passing variable from My sql command to text file
5477
September 12, 2008 12:01AM


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.