How to delete mysql database through shell command
In general, you can pass any query to mysql
from shell with -e option.
mysql -u username -p -D dbname -e "DROP DATABASE dbname"
Try the following command:
mysqladmin -h[hostname/localhost] -u[username] -p[password] drop [database]