mysql drop database if exists command line code example Example 1: mysql drop database DROP DATABASE ma_base Example 2: mysql delete database DROP DATABASE dbname