mysql常用操作
时间:2018-06-08 20:03:44
收藏:0
阅读:206
1. 给数据库添加登录用户和权限
# 创建用户
create user ‘ecsoft‘ identified by ‘ecsoft‘;
# grant all privileges on 库名.表名 to ‘用户名‘@‘IP地址‘ identified by ‘密码‘ with grant option;
grant all privileges on ecsoft.* to ecsoft@"localhost" identified by ‘ecsoft‘;
# 提交
flush privileges;
原文:https://www.cnblogs.com/30go/p/9157188.html
评论(0)