CREATE USER joel@localhost IDENTIFIED BY 'sesame';
CREATE USER dba IDENTIFIED BY 'sesame'; --creates 'dba@%'
RENAME USER joel@localhost TO joelmurach@localhost;
GRANT USAGE ON *.* TO joelmurach@localhost IDENTIFIED BY 'newpassword';
DROP USER joelmurach@localhost;
DROP USER dba; --drops 'dba@%'
CREATE USER
statement to create a user that has no privileges.RENAME USER
statement to change the name of a user.GRANT
statement to change a user’s password.DROP USER
statement to drop a user.