troubleshooting Question

Testing MySQL credentials in a batch file

Avatar of brashquido1
brashquido1 asked on
MySQL Server
5 Comments1 Solution867 ViewsLast Modified:
HI All,

I'm trying to write a batch file for Windows XP to install a PHP/MySQL based web app, but have come to a dead stop when trying to find a method of verifying the MySQL credentials supplied by the user. I've been using this command from the command line ;

mysql dbname --user=dbuser --password=dbpass< \s

If the credentials are all correct, then there is obviously no problem. The problem is if any one, or combination of credentials are incorrect the error returned from MySQL does not enable you to distiguish between an incorrect database name, username or password. Anyone know of anyway I can test database name, username and password seperately for MySQL in a batch file for Windows XP so I can determine exactly which credential(s) is wrong?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros