MySQL创建用户、授权等

时间:2014-07-13 22:15:30   收藏:0   阅读:201

用于MySQL5.6命令行执行成功:

bubuko.com,布布扣
create database wp_people;

create user wp_people@localhost identified by yrwb ;

use mysql;

update user set Password=PASSWORD("yrwb") where user=wp_people;

grant all privileges on wp_people.* to wp_people@localhost identified by yrwb;

flush privileges; 
新建用户分配权限等

 

MySQL创建用户、授权等,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!