首先进入mysql控制台
1)重置root密码
use mysql;
update user set authentication_string=PASSWORD('qbgg2016') where user='root';
flush privileges;
2)创建数据库,创建用户并授权
create database qbgg;
create user 'bean'@'localhost' identified by 'jjjjjj';
grant all on qbgg.* to 'bean'@'localhost';