mysql添加用户权限

MySQL性能调优my.cnf详解

//登录MYSQL
mysql -u root -p
//创建用户
insert into mysql.user(Host,User,Password) values(‘localhost’,'jeecn’,password(‘jeecn’));
//刷新系统权限表
flush privileges;

grant select,insert,update,delete,create,drop on zhengxin.*to dataadmin@127.0.0.1 identified by ‘123456′;

posted @ 2016-03-28 14:43  yuan.net  阅读(159)  评论(0编辑  收藏  举报