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