Mysql添加用户与授权

create user ‘用户名’@'%' identified by '密码';

grant select on 数据库.* to ’用户名‘@'%';

FLUSH PRIVILEGES;

猜你喜欢

转载自www.cnblogs.com/fkdxpp/p/9149532.html