# 创建用户
CREATE USER 'someuser' @'%' IDENTIFIED BY 'password';
# 授权
GRANT privileges someuser ON somedatabase.* TO 'someuser' @'%'
# 刷新
flush privileges;
# 创建用户
CREATE USER 'someuser' @'%' IDENTIFIED BY 'password';
# 授权
GRANT privileges someuser ON somedatabase.* TO 'someuser' @'%'
# 刷新
flush privileges;
本文标题:mysql 添加用户+授权+刷新权限
本文链接:https://www.haomeiwen.com/subject/zvgljrtx.html
网友评论