hi i am using a code to add a sql file to my database in a batch file . it works .
my code
C:
cd\xampp\mysql\bin
mysql -u root -e "source C:\xampp\htdocs\internet_wk_1.7\db\master_db.sql" kani
the case is i want to get user input values to user name , password and database name , instead of hard code those values .
currently my username hard coded as root
i want to do like this
user should get a message
please enter your user name :
when i did it
please enter your password :
after that
please enter your database name :
then the script shout proceed . how to do this , please help . thanks in advance