mysql添加用户

来源:互联网 发布:java安装在d盘教程 编辑:程序博客网 时间:2024/06/18 16:40

grant usage on *.* to 'user'@'hostname' identified by 'passwd' with grant option;  //添加用户

grant all privileges on *.* to 'user'@'hostname' identified by 'passwd';  //添加权限

flush privileges; //更新权限