mysql设置权限,添加远程访问用户

mysql设置权限,添加远程访问用户并且设置其权限

CREATE USER ‘你想创建的用户名‘@‘此处填入ip(%符号默认所有人都可以访问)‘ IDENTIFIED BY ‘登录所需要的密码‘;
GRANT ALL PRIVILEGES ON *.* TO ‘所登录的数据库‘@‘此处填入ip(%符号默认所有人都拥有所有操作权限)‘ WITH GRANT OPTION;

最后刷新MySQL的系统权限相关表

flush privileges;

mysql设置权限,添加远程访问用户

上一篇:MySQL去掉小数后面多余的0


下一篇:node——Request header field Authorization is not allowed by Access-Control-Allow-Headers in preflight response