#查看数据库用户权限
mysql> show grants for username@[ip];
#修改数据库密码 方法一:
mysql> grant all privileges on *.* to username@'[IP]' identified by 'password' ;
mysql> flush privileges;
#修改数据库密码 方法二:
mysql> update mysql.user set password=password('password') where user='username';
mysql> flush privileges;