mysql 权限的相应修改
UPDATE user SET Password = PASSWORD('bbbb') WHERE user = 'root';
flush privileges;
update user set host = '%' where user ='root';
flush privileges;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'bbbb' WITH GRANT OPTION;
只赋予某用户名某库的读权限
GRANT select ON dbname.* TO 'username'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;