msql创建用户并授权

CREATE USER 'test2'@'%' IDENTIFIED BY '123456';
GRANT ALL PRIVILEGES ON *.* TO 'test2'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
FLUSH PRIVILEGES;

delete from user where `user` = '';

drop user test2;

posted on 2021-04-23 09:10  andydaopeng  阅读(35)  评论(0编辑  收藏  举报

导航