mysql drop database if exists mysql drop table if exists code example Example: mysql drop database if exists DROP DATABASE IF EXISTS database_name;