MySQL创建用户和授权

mysql -u root -p

CREATE USER 'user'@'%' IDENTIFIED BY '666666';

grant select on database.* to user@'%';

你可能感兴趣的:(MySQL创建用户和授权)