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';
Dec 16, 2015
| by
From: http://stackoverflow.com/questions/598190/mysql-check-if-the-user-exists-and-drop-it
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';
© 2015 Haixing Hu
with help from Jekyll Bootstrap
and Twitter Bootstrap
This work is licensed under a
Creative Commons License