mysql users and privileges list

Solutions on MaxInterview for mysql users and privileges list by the best coders in the world

showing results for - "mysql users and privileges list"
Truman
13 May 2017
1SELECT * FROM mysql.user;
2
3SELECT * FROM information_schema.user_privileges;
4SELECT CONCAT('SHOW GRANTS FOR ''',user,'''@''',host,''';') FROM mysql.user;
5SHOW GRANTS FOR 'my_user'@'localhost';