mysql用户授权问题

授权远程访问操作如下三步:

1.use mysql;

2.grant all privileges on . to 'root'@'%' identified by 'password';

3.flush privileges;

取消授权远程访问操作如下:

1.use mysql;

2.revoke all privileges on . from 'root'@'%';

3.flush privileges;

posted @ 2020-11-09 13:59  nanfengnan  阅读(59)  评论(0)    收藏  举报