mysql创建用户,并授权用户

mysql创建用户,并授权用户

mysql
创建用户:
CREATE USER ‘用户名’@’%’ IDENTIFIED BY ‘密码’;

授权:
grant all privileges on 数据库名.* to ‘用户名’@’%’ identified by ‘密码’;

你可能感兴趣的:(mysql)