how to remove a database if exist in mysql code example Example: mysql drop database if exists DROP DATABASE IF EXISTS database_name;