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