title: How to check if the database exists or not in rails before doing a rake db:setup
body: <p>How to check if the database exists or not in rails before doing a rake db:setup?</p>
  
  <p>I would like to check if a database already exists before a db:create is being done . I have not seen a specific way in rails so far but i know this can be done using mysql scripts</p>