title: Drop MySQL databases matching some wildcard?
body: <p>Im runing mySQL in a server where i need to drop tons of databases (after some testing with the server). All databases that i need to drop have the same prefix "Whatever_".</p>
  
  <p>After the prefix, the names are random. So you have your Whatever_something, Whatever_232, Whatever_blabla, .... , Whatever_imthelast.</p>
  
  <p>I will be doing this job quite some times so i was wondering what would be the best way to do this?</p>
  
  <p><strong>EDIT:</strong>
  I can use any kind of language or plug in for mysql... so we CAN do this in some ways. Right now, i asked the guy that is generating the databases to give me a .txt with each name in a line... so im coding a quick php that will take a file and delete all the databases in it, later i will try the % answer(if it works, it takes the correct answer for sure its the easier way). Anyway i would like to do this the easier way coz i wont be able to support this code(other guys will and you know... )</p>
  
  <p><strong>edit 2:</strong>
  The use of a wildcard didnt work: #1008 - Can't drop database 'whatever_%'; database doesn't exist </p>