root 用户进入数据库
grant all privileges on *.* to '你的用户名'@'%' identified by '你的用户密码';
grant all privileges on *.* to '你的用户名'@'localhost' identified by '你的用户密码';
grant all privileges on *.* to '你的用户名'@'127.0.0.1' identified by '你的用户密码';
flush privileges; ##必须执行