show all database users linux code example
Example 1: how to show all users in mysql
SELECT user FROM mysql.user;
Example 2: SELECT User,Host FROM mysql.user;
SELECT User,Host FROM mysql.user;
DROP USER 'testuser'@'localhost';
SELECT user FROM mysql.user;
SELECT User,Host FROM mysql.user;
DROP USER 'testuser'@'localhost';