display users in mysql
#display all user data
select * from mysql.user;
#display username and host
select user, host from mysql.user;
display users in mysql
#display all user data
select * from mysql.user;
#display username and host
select user, host from mysql.user;
find logged in users mysql
SELECT SUBSTRING_INDEX(host, ':', 1) AS host_short,
GROUP_CONCAT(DISTINCT user) AS users,
COUNT(*) AS threads
FROM information_schema.processlist
GROUP BY host_short
ORDER BY COUNT(*), host_short;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us