How to Remove a MySQL User on Linux via the Command Line

April 1, 2020 Liquid Web

In this video, we describe how to remove a MySQL user on Linux via the command line.

Commands used:
mysql -u root -p
select user,host from mysql.user;
drop user 'testuser'@'localhost';
select user,host from mysql.user;

The related article for this article can be found here: https://www.liquidweb.com/kb/remove-a-mysql-user-on-linux-via-command-line/

For more information about this and other topics, visit us at https://www.liquidweb.com/kb/ or
To learn more about our Private Cloud Powered by VMware and NetApp, visit: https://www.liquidweb.com/products/private-cloud/ 

Video by: Justin Palmer

About the Author

Liquid Web

Liquid Web powers online content, commerce, and potential for SMB entrepreneurs and the designers, developers and digital agencies who create for them. Sign up for our newsletter to stay up to date with our latest content.

More Content by Liquid Web
Previous Video
How to Remove Permissions for a MySQL User on Linux via the Command Line
How to Remove Permissions for a MySQL User on Linux via the Command Line

In this video, we describe how to remove permissions for a MySQL user via the Linux command line.

Next Video
How To Install Apache Tomcat 8 on Ubuntu 16.04
How To Install Apache Tomcat 8 on Ubuntu 16.04

Apache Tomcat is used to deploy and serve JavaServer Pages and Java servlets. It's an open-source technolog...

Learn What Qualities to Look for in Your Next Host in Our New Guide!

Download Now