开发者

User authentication from batch file

开发者 https://www.devze.com 2023-03-22 11:07 出处:网络
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开发者_如何学

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号