mysql添加用户,授权,刷新权限

创建用户

CREATE USER 'test'@'localhost' IDENTIFIED BY '123456';

赋权

GRANT ALL PRIVILEGES ON *.* TO 'test'@'localhost'

GRANT ALL PRIVILEGES ON db.* TO 'test'@'localhost'

刷新权限

FLUSH PRIVILEGES

posted @ 2018-10-11 15:51  ヾJ﹍Hヾ  阅读(36300)  评论(0编辑  收藏  举报