DatabaseMySQL Quick Tip: Using the DROP USER Command

MySQL Quick Tip: Using the DROP USER Command

Developer.com content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

MySQL Database Tutorials

There are instances where a database administrator or developer will need to remove a user from an application to ensure compliance, protect sensitive data, or for security reasons, such as if an employee has left an organization. Removing a user from a database is simple with MySQL, which provides db admins with the DROP USER command for just such an occasion.

The syntax of the DROP USER command in MySQL is pretty straightforward. To remove a user from a database in MySQL, just use the following command:

DROP USER 

Read: Using the MySQL DAYOFWEEK Function

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Latest Posts

Related Stories