This tutorial explains how to use the MySQL DROP USER statement with syntax and examples.
The DROP USER statement is used to remove a user from the MySQL database.
The syntax for the DROP USER statement in MySQL is:
The name of the user to remove from the MySQL database.
Let's look at how to drop a user in MySQL using the DROP USER statement.
For example:
In this example, the DROP USER statement would drop the user called ao in the MySQL database.
How can you drop more than one user at a time in MySQL? You can use the DROP USER statement to drop multiple users by comma separating the users that you wish to drop.
For example:
This DROP USER example would drop two users in MySQL - ao and andersonk.