MySQL has no DROP USER IF EXISTS ... syntax.

The following code imexplicitly creates the user and then drop the user.

GRANT USAGE ON *.* TO 'username'@'localhost' IDENTIFIED BY 'password';
DROP USER 'username'@'localhost';