添加用户
CREATE USER 'finley'@'localhost' IDENTIFIED BY 'some_pass';
GRANT ALL PRIVILEGES ON *.* TO 'finley'@'localhost' with grant option;
授权 所有 权限 on *.*(通配符所有数据库) 给 finley 用户,
参考https://dev.mysql.com/doc/refman/5.7/en/adding-users.html
添加用户
CREATE USER 'finley'@'localhost' IDENTIFIED BY 'some_pass';
GRANT ALL PRIVILEGES ON *.* TO 'finley'@'localhost' with grant option;
授权 所有 权限 on *.*(通配符所有数据库) 给 finley 用户,
参考https://dev.mysql.com/doc/refman/5.7/en/adding-users.html
本文标题:mysql 添加用户,并设置权限
本文链接:https://www.haomeiwen.com/subject/bvbfcxtx.html
网友评论