User authentication from batch file
How can I authenticate a valid user already registered on mysql automatically ? (Can be a batchscript, or vbs or anything that run automatically from windows) and if the user exist and the开发者_如何学运维 password is correct, call another batch ?
You could login with the command line client like so
mysql -uroot -ppassword -e"exit" && SET validlogin=true || SET validlogin=false
IF %validlogin% == true (ECHO run batch here) ELSE (ECHO don't run batch)
Some dos guru could probably do better
精彩评论