Mysql5.7.10新加用户

INSERT INTO mysql.user(HOST,USER,authentication_string,ssl_cipher,x509_issuer,x509_subject,select_priv) 
VALUES('192.168.60.%','hzx',PASSWORD('123'),'','','','Y');

UPDATE USER SET authentication_string=PASSWORD("123") WHERE USER="hzx";

SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query FROM mysql.user

你可能感兴趣的:(Mysql5.7.10新加用户)