mysql list all database users code example
Example 1: mysql list users on ubuntu
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';