mysql drop database if exists
snippet in sql

mysql drop database if exists

user4642

DROP DATABASE IF EXISTS database_name;

mysql drop database

user5223

DROP DATABASE ma_base

mysql database drop

user2301

mysql -e "DROP DATABASE db_name;"