SELECT DISTINCT CONCAT('SHOW GRANTS FOR ''',user,'''@''',host,''';') AS query FROM user;
show grants for username@localhost;
show grants for username@localhost;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/20757099/viewspace-612136/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/20757099/viewspace-612136/