Re: User/password as parameter to migration script
Posted by: Michael G. Zinner
Date: September 08, 2005 12:26PM

I have just added that a new command line parameter to the grtsh. You can now use -D to define global variables in the form of -D var=value.

Example:

grtsh -D user=mike -D pwd=12345

/ > print(grtV.toLua(user) .. "/" .. grtV.toLua(pwd))
mike/12345

Please note that the values are passed as GRT values, so you need grtV.toLua() to convert them to Lua varibles.

Of course you can also use interactive input of values.

/ > username= input("username: ")
username: mike
/ > print(username)
mike

The -D command line parameter for the grtsh is in the new 1.0.18 release I just uploaded. Until the mirrors have catched up you can download from ftp://ftp.mysql.com/pub/mysql/download/mysql-migration-toolkit-1.0.18-rc-win32.msi

Mike

Michael Zinner, Team Lead, Developer Tools
MySQL AB, www.mysql.com

Are you MySQL certified? www.mysql.com/certification

Options: ReplyQuote


Subject
Written By
Posted
Re: User/password as parameter to migration script
September 08, 2005 12:26PM


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.