mysql> SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query FROM mysql.user; mysql> show grants for 'root'@'localhost'; mysql> select * from mysql.user where user='root' \G; mysql> desc mysql.user; mysql> GRANT ALL ON *.* TO `用户名`@`127.0.0...【阅读全文】