2

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 ?

2
  • It isn't clear to me what you are asking. Do you mean you want to see if a specific username/password combination is a valid mysql user? Or do you have a users table that your application is using? Commented Sep 11, 2012 at 14:11
  • Assuming that you can write the query, the parsing is explained here: stackoverflow.com/questions/1746475/… Commented Sep 11, 2012 at 17:04

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.