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
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!