title: How to check whether Database is available from command prompt
body: <p>I an using mysql server. I want to check whether the 'X' database is available or not from the windows batch file, and if available i have to give message that Database is available.
  How can I do this, I tried many ways but did not succeed in any of them.
  Can anyone help?</p>