PDA

View Full Version : logging in to monitor thru dos


davehaz
08-19-2005, 11:32 PM
howdy,
I am playing around with logging in and running commands through batch files on a win2000 machine running mysql, I have a password on my db, I am using mysql -h localhost -u root -p
to start up the monitor this works, but it asks for a password which kind of kills the automated part of what I am wanting to do, is there a way to include the password on this command? I thought about passing the password using %1, but I haven't done dos in so long that I dont even know if this feature still works, does anybody?

thanks.

davehaz
08-19-2005, 11:36 PM
nevermind you would do that like
mysql -u root -h host -ppassword