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?