How to delete mysql database through shell command January 30, 2023 by Tarik Try the following command: mysqladmin -h[hostname/localhost] -u[username] -p[password] drop [database]